skip to Main Content

Repair corrupted mailbox Exchange

The mailbox in Exchange can get corrupted or damaged. It can happen due to various reasons, such as moving a mailbox to another database. It can also occur due to damage because of system failure, improper shut-down of the server, or a virus attack. The user with a corrupted mailbox can have symptoms. Some of the symptoms are incorrect item counts in folders. It’s also possible that results are not displaying correct contents in the search. Let’s find out and learn how to repair a corrupted mailbox.

How to repair corrupted mailbox

Use the New-MailboxRepairRequest cmdlet to detect and repair the corrupted mailbox. The New-MailboxRepairRequest cmdlet is only available for the following Exchange Servers:

  • Exchange Server 2010
  • Exchange Server 2013
  • Exchange Server 2016
  • Exchange Server 2019

Run this command against a specific mailbox or all mailboxes in a database. While this task is running, mailbox access is disrupted only for the mailbox being repaired. If you’re running this command against all mailboxes in a database, only the mailbox being repaired is disrupted. All other mailboxes on the database remain operational. It’s good to know that this will not detect and repair the database itself. It will repair the mailboxes inside the database. After you begin the repair request, you can’t stop the task unless you dismount the database.

The cmdlet can repair four types of mailbox corruptions:

  • Errors in search folders (SearchFolder).
  • Errors in folders counts that aren’t reflecting correct values (AggregateCounts).
  • Errors in folders that aren’t returning correct content (FolderView).
  • Errors in folder structure within a mailbox (ProvisionedFolder).
To avoid any performance problems, there are limits placed on the number of simultaneous repair requests 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.

Repair against a specific mailbox

Detect corruptions only against a specific mailbox without repairing. Run Exchange Management Shell as administrator and run the following command.

Let’s get the status about the repair.

It will show the mailbox repair Detect Only as True and Job State as Queued.

You have to wait a bit before the job completes. Run the previous Get-MailboxRepairRequest command. You can keep running the command till you see the Job State as Succeeded.

Detect and repair corruptions on the specific mailbox.

It is also possible to only use one of the four types of mailbox corruptions against a specific mailbox.

You can use the name of the user if you don’t know the email. Replace email john.doe@alitajran.com with username Doe John.

Repair against all mailboxes in a database

Detect corruptions only against all mailboxes in a database without repairing. In this example, we use database DB1.

Get the mailbox repair status in a database.

Detect and repair corruptions on the mailboxes in a database.

It is also possible to only use one of the four types of mailbox corruptions against all mailboxes on a database.

Keep reading: Repair failed content index in Exchange »

Conclusion

It’s great to have the New-MailboxRepairRequest cmdlet to detect and repair a corrupted mailbox. It’s even better that you learned how to apply it against a specific mailbox or all mailboxes in a database.

Did you enjoy this article? You may also like Get Exchange 2010 user mailboxes. Don’t forget to follow us.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top