Exchange Server5 min read

New-MailboxRepairRequest in Exchange 2019 and 2016

Anjali Rawat
Updated:

Quick Answer

New-MailboxRepairRequest fixes mailbox corruption in Exchange.

It replaces the old Isinteg utility and works on a mounted database.

Add the DetectOnly switch first to see the problems.

Choose one of four corruption types for the request.

Use Exchange EDB Recovery when the repair cannot fix the damage.

New-MailboxRepairRequest is the Exchange cmdlet that detects and repairs corruption inside a mailbox or a database. It replaces the Isinteg utility from older Exchange versions.

It fixes wrong item counts, broken folder views, missing search folders and folders that do not provision. It does not fix a damaged database file.

This guide shows the syntax, the corruption types, the limits and the next step when the repair fails.

What Does New-MailboxRepairRequest Fix?

Microsoft documents the cmdlet for on premises Exchange 2010, 2013, 2016, 2019 and Subscription Edition. The Force and StoreMailbox parameters apply from Exchange 2013.

You choose one or more corruption types for every request.

Corruption Type

What It Fixes

FolderView

A folder shows the wrong content.

ProvisionedFolder

Folders in the structure are missing or broken.

SearchFolder

Search folders fail or return wrong results.

AggregateCounts

Item counts and folder sizes are wrong.

A few values, like AbandonedMoveDestination, work only alone or only with the Database parameter.

What Must You Know Before You Start the Repair?

  • You need the permissions that your role group assigns for this cmdlet.
  • The database stays mounted. Only the mailbox under repair loses access.
  • You cannot stop a started request unless you dismount the database.
  • A database allows one active repair request at a time.
  • A server allows one database request or up to 100 mailbox requests at a time.

Back up the database before you start. Test on one mailbox first and repair the database after that.

How to Detect Corruption With the DetectOnly Switch?

Suits: Exchange admins. Needs: Exchange Management Shell and the mailbox name. Limit: Reports problems and fixes nothing.

The DetectOnly switch reports the corruption and leaves the mailbox untouched. Use it before every repair.

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

Check the result with Get-MailboxRepairRequest. The result lists the corruption that the request found.

Get-MailboxRepairRequest -Mailbox ayla

How to Repair One Mailbox or a Full Database?

Suits: Exchange admins. Needs: A backup and a quiet period. Limit: One database request at a time.

Repair folder views for one mailbox.

New-MailboxRepairRequest -Mailbox tony@contoso.com -CorruptionType FolderView

Repair a mailbox with its archive and all four types.

New-MailboxRepairRequest -Mailbox ayla -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,FolderView -Archive

Repair the item counts of every mailbox in a database.

New-MailboxRepairRequest -Database MBX-DB01 -CorruptionType AggregateCounts

Target one mailbox through its database with the StoreMailbox parameter. Get the mailbox GUID from Get-MailboxStatistics.

$Mailbox = Get-MailboxStatistics annb
New-MailboxRepairRequest -Database $Mailbox.Database -StoreMailbox $Mailbox.MailboxGuid -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,FolderView

The Force switch skips the prompts and starts at once without waiting for workload management. See the Microsoft reference for New-MailboxRepairRequest for every parameter.

How to Recover Mailboxes When the Repair Fails?

Suits: Admins with a damaged database or unreadable mailbox. Needs: A copy of the EDB file and a Windows PC. Limit: The free demo previews every mailbox.

The cmdlet repairs logical errors inside a mounted database. It cannot help a database that fails to mount or an EDB file with page damage. Exchange EDB Recovery opens corrupt, dismounted and offline EDB files without a mount and exports the mailboxes.

Recover Mailboxes From a Damaged EDB File

Exchange EDB Recovery scans Priv.edb and Pub.edb files and previews every mailbox. Export to PST, MSG, EML, PDF, HTML, MBOX, Office 365 or live Exchange.

Download Now Purchase Now

  1. Add the EDB file.
  2. Choose Quick Scan or Advance Scan.
  3. Preview the mailboxes and folders.
  4. Export the mailboxes you need to PST or a live Exchange server.

Add an EDB file in Exchange EDB Recovery after a failed mailbox repair

Preview recovered mailboxes in Exchange EDB Recovery

A related guide explains how to batch move mailboxes in Exchange once the data is safe.

Best Practices for Mailbox Repair Requests

  • Back up the database before every repair.
  • Use DetectOnly first and read the result.
  • Repair one mailbox before you repair a database.
  • Choose a quiet period for a database repair.
  • Keep the Exchange build and its updates current.

Author's Verdict

Detect first and repair next. Use one corruption type at a time on a test mailbox and then widen the scope. A mounted database allows this repair, and a damaged database file does not. Use Exchange EDB Recovery for that case, and copy the EDB file before every attempt.

FAQs on New-MailboxRepairRequest

What Does New-MailboxRepairRequest Do?

It detects and repairs corruption inside Exchange mailboxes and databases. It fixes folder views, search folders, provisioned folders and item counts.

Which Exchange Versions Support It?

Microsoft documents it for on premises Exchange 2010, 2013, 2016, 2019 and Subscription Edition.

Can I Stop a Repair Request?

No, a started request stops only when you dismount the database.

Does the Database Go Offline During the Repair?

No, the database stays mounted. Only the mailbox under repair loses access.

How Do I Only Check for Corruption?

Add the DetectOnly switch. The cmdlet reports the problems and changes nothing.

What if the Repair Does Not Fix the Mailbox?

Recover the data from the EDB file. Exchange EDB Recovery opens corrupt and offline EDB files and exports the mailboxes.

Can I Preview Mailboxes Before I Buy?

Yes, the free demo previews every mailbox.