Create a Mailbox Repair Request in Exchange 2010

The New-MailboxRepairRequest cmdlet detects and repairs the following types of mailbox corruptions:

  • Search folder corruptions (using the SearchFolder value of the CorruptionType parameter)
  • Aggregate counts on folders that aren’t reflecting correct values (using the AggregateCounts value of the CorruptionType parameter)
  • Views on folders that aren’t returning the correct content (using the FolderView value of the CorruptionType parameter)
  • Provisioned folders that are incorrectly pointing into parent folders that aren’t provisioned (using the ProvisionedFolder value of the CorruptionType parameter)

To avoid any performance problems, Exchange enforces limits on the number of simultaneous repair requests that can be submitted per server. Only one request can be active for a database-level repair; up to 100 requests can be active for a mailbox-level repair per server.

Use the Shell to detect corruptions and repair a mailbox
New-MailboxRepairRequest -Mailbox tony@contoso.com -CorruptionType FolderView
Use the Shell to detect corruptions and repair a set of mailboxes
Get-Mailbox -Filter {CustomAttribute2 -like "Repair Required"} | New-MailboxRepairRequest -CorruptionType SearchFolder,AggregateCounts,ProvisionedFolder,FolderView
Use the Shell to detect corruptions for a mailbox
New-MailboxRepairRequest -Mailbox ayla -CorruptionType ProvisionedFolder,SearchFolder -DetectOnly
Use the Shell to repair all mailboxes in a database
New-MailboxRepairRequest -Database MBX-DB01 -CorruptionType AggregateCounts

Posted in Exchange 2010 and tagged , , , .

Leave a Reply