Applies to: Exchange Server 2013

Topic Last Modified: 2012-10-16

Use the New-MailboxRepairRequest cmdlet to detect and fix mailbox corruptions. You can run this command against a specific mailbox or against a database. While this task is running, mailbox access is disrupted only for the mailbox being repaired. If you're running this command against a database, only the mailbox being repaired is disrupted. All other mailboxes on the database remain operational.

For information about the parameter sets in the Syntax section below, see Syntax.

After you begin the repair request, it can't be stopped unless you dismount the database.


New-MailboxRepairRequest -Mailbox <MailboxIdParameter> [-Archive <SwitchParameter>] <COMMON PARAMETERS>
New-MailboxRepairRequest -Database <DatabaseIdParameter> <COMMON PARAMETERS>
COMMON PARAMETERS: -CorruptionType <MailboxStoreCorruptionType[]> [-Confirm [<SwitchParameter>]] [-DetectOnly <SwitchParameter>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]



This example detects and repairs all folder views for the mailbox

Copy Code
New-MailboxRepairRequest -Mailbox -CorruptionType FolderView 


This example only detects and reports on ProvisionedFolder and SearchFolder corruption issues to Ayla Kol's mailbox. This command doesn't repair the mailbox.

Copy Code
New-MailboxRepairRequest -Mailbox ayla -CorruptionType ProvisionedFolder,SearchFolder -DetectOnly


This example detects and repairs AggregateCounts for all mailboxes on mailbox database MBX-DB01.

Copy Code
New-MailboxRepairRequest -Database MBX-DB01 -CorruptionType AggregateCounts


This example detects and repairs all corruption types for Ayla Kol's mailbox and archive.

Copy Code
New-MailboxRepairRequest -Mailbox ayla -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,Folderview -Archive

Detailed Description

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

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

  • Search folder corruptions (SearchFolder)

  • Aggregate counts on folders that aren't reflecting correct values (AggregateCounts)

  • Views on folders that aren't returning correct contents (FolderView)

  • Provisioned folders that are incorrectly pointing into parent folders that aren't provisioned (ProvisionedFolder)

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Mailbox repair request" entry in the Recipients Permissions topic.


Parameter Required Type Description




The CorruptionType parameter specifies the type of corruption that you want to detect and repair. You can use the following values:

  • SearchFolder

  • AggregateCounts

  • ProvisionedFolder

  • FolderView

You can search for multiple corruption types at a time. Separate multiple types with a comma, for example, SearchFolder,AggregateCounts.




The Database parameter specifies the database on which you run this command. If you use this parameter, all mailboxes on the database are searched for corruptions. To avoid performance issues, you're limited to one active database repair request at a time. You can use the following values:

  • GUID of the database

  • Database name

You can't use this parameter in conjunction with the Mailbox parameter.




The Mailbox parameter specifies the mailbox on which you run this command. You can use the following values:

  • GUID

  • Distinguished name (DN)

  • Domain\Account

  • User principal name (UPN)

  • LegacyExchangeDN

  • SMTP address

  • Alias

You can't use this parameter in conjunction with the Database parameter.




The Archive parameter specifies whether to detect corruptions or repair the archive mailbox associated with the specified mailbox. If you don't specify this parameter, only the primary mailbox is repaired.

You can't use this parameter in conjunction with the Database parameter.




The Confirm switch can be used to suppress the confirmation prompt that appears by default when this cmdlet is run. To suppress the confirmation prompt, use the syntax -Confirm:$False. You must include a colon ( : ) in the syntax.




The DetectOnly parameter specifies that you want this command to report errors, but not fix them. You don't have to specify a value with this parameter.




The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.




The Force switch specifies that the cmdlet should run immediately and not wait to be dispatched by workload management.




The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.