OST performance slow? Defrag it

I found this up on BlankMan’s Blog and it’s damm cool.

… One of the frustrating realities about OST files is that they become progressively slower as they become older. One of the factors influencing this is fragmentation.

 As the Exchange Team blog says: 
“We usually recommend no more than about 2500 – 5000 messages in any of the critical path folders.  The critical path folders are the Calendar, Contacts, Inbox, and Sent Item folder. Ideally, keep the Inbox, Contacts and Calendar to 1000 or less.  Other folders, particularly custom folders created by the user, can handle having larger numbers of items without having a broad impact on the user experience (20,000 items in my “Cookie Recipes” folder?  No problem – except when I need to find that recipe from last Christmas!).”

So the more folders, the slow thing go … so BlankMan used Contig.exe from Sysinternals to defrag is OST :-|.  Contig is a single-file defragmenter that attempts to make files contiguous on disk and is perfect for quickly optimizing files that are continuously becoming fragmented, or that you want to ensure are in as few fragments as possible.

The syntax for Contig.exe:

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/


Contig is a utility that relies on NT’s built-in defragging support
to make a specified file contiguous on disk. Use it to optimize execution
of your frequently used files.

Usage:
    d:utilsContigContig.exe [-v] [-a] [-s] [-q] [existing file]
or  d:utilsContigContig.exe [-v] -n [new file] [new file length]

  -v: Verbose
  -a: Analyze fragmentation
  -q: Quiet mode
  -s: Recurse subdirectories

So lets check out my OST:

C:>d:utilsContigContig.exe outlook0.ost -a

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing outlook0.ost
outlook0.ost is in 42 fragments

Summary:
     Number of files processed   : 1
     Average fragmentation       : 42 frags/file

d:utilsContigContig.exe outlook.ost -a

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing C:outlook.ost
C:outlook.ost is in 61 fragments

Summary:
     Number of files processed   : 1
     Average fragmentation       : 61 frags/file

so time to defrag

C:>d:utilsContigContig.exe outlook.ost

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing C:outlook.ost

Summary:
     Number of files processed   : 1
     Number of files defragmented: 1
     Average fragmentation before: 61 frags/file
     Average fragmentation after : 1 frags/file

Kewl, now lets check it out
C:d:utilsContigContig.exe outlook.ost -a

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing outlook.ost
C:outlook.ost is defragmented

Summary:
     Number of files processed   : 1
     Average fragmentation       : 1 frags/file

Kewl ;-) Thanks BlankMan!

OWA & Out of Office Assistant

So off the back of this post “942227: You may receive duplicate Out of Office messages in Outlook 2003 after your mailbox is migrated to Exchange Server 2007” one of the workarounds is to use OWA to set the OOO.  So I wanted to be able to send a link out to a user that will take them direct to  OOO page in OWA

So after some surfing I came up with nothing to help me, the IIS logs come to the rescue.

Use the following URLs to get direct to …

Inbox:https:///owa/?ae=Folder
Contacts: https:///owa/?ae=Folder&t=IPF.Contact
Calendar: https:///owa/?ae=Folder&t=IPF.Appointment
Tasks: https:///owa/?ae=Folder&t=IPF.Task 

Options
Regional Settings: https:///owa/?ae=Options&opturl=Regional
Messaging: https:///owa/?ae=Options&opturl=Messaging
Spelling: https:///owa/?ae=Options&opturl=Spelling
Calendar Options: https:///owa/?ae=Options&opturl=Calendar
Out of Office Assistant: https:///owa/?ae=Options&opturl=Oof
Junk E-Mail: https:///owa/?ae=Options&opturl=JunkEmail
Change Password: https:///owa/?ae=Options&opturl=ChangePassword
General Settings: https:///owa/?ae=Options&opturl=General
Deleted Items: https:///owa/?ae=Options&opturl=DeletedItems
Mobile Devices: https:///owa/?ae=Options&opturl=Eas
About: https:///owa/?ae=Options&opturl=About

Not you need to turn off FBA to get this to work