Pages

Thursday, June 30, 2011

How To Clear Outlook’s Outbox When Exchange States There Are Items In Folder

 

If you run the following cmdlet in Exchange Management Shell you may get all mailboxes with Outboxes that Exchange states has items in it.  If you check from Outlook the user’s Outbox, it is empty.

get-mailbox | get-mailboxfolderstatistics | where-object { $_.Name -eq 'Outbox' -and $_.FolderSize -gt 0 }| sort-object itemsinfolder -descending | select-object Identity,ItemsInFolder,FolderSize | ft -autosize

Launch MFCMapi on the user's computer or from a terminal server logged in as the user.

  1. Session->Logon And Display Store Table
  2. Double click Desired Mailbox
  3. Expand Root Container
  4. Expand Top of Information Store
  5. Right click Outbox and select Empty Items and Subfolders from Folder
  6. Check DEL_ASSOCIATED
  7. Check Hard Deletion
  8. Click OK

Wait about 30 minutes for Exchange to update itself and run the cmdlet again

get-mailbox | get-mailboxfolderstatistics | where-object { $_.Name -eq 'Outbox' -and $_.FolderSize -gt 0 }| sort-object itemsinfolder -descending | select-object Identity,ItemsInFolder,FolderSize | ft -autosize

MFCMapi can be downloaded here:
http://mfcmapi.codeplex.com/

No comments: