How to Use New-MailboxRepairRequest Cmdlet In Exchange Server?

  author
Written By Ashwani Tiwari
Anuraag Singh
Approved By Anuraag Singh
Published On September 15th, 2022
Reading Time 6 Minutes Reading

Summary: New-MailboxRepairRequest cmdlet is the successor of the Microsoft ISInteg tool. In this write-up, the users will learn everything about this command and how to use it to fix corruption issues in the Exchange database.

Everyone knows that Microsoft Exchange databases are prone to corruption. As it stores all the crucial data of organizations, it becomes necessary for the administrators to keep the Exchange data safe and secure. The Exchange administrators usually go with the New-MailboxRepairRequest command to detect and repair the .edb file mailboxes from corruption.

You can use this command only in on-premises Exchange Server, that too in Exchange Server 2010, 2013, 2016, and 2019 only.

For Example:

Point to be Noted: The New-MailboxRepairRequest cmdlet doesn’t repair corrupt offline / dismounted Exchange database and mailboxes. For this, users can use the smart solution by SysTools that can remove corruption from dismounted as well as offline Exchange database files.

Users can use this command on all Exchange database mailboxes or on a specific mailbox. During the process, you cannot access the mailbox that is being repaired. To stop the request one has to dismount the database otherwise user cannot terminate the command.

To maintain the performance, there can be only one request active on the server for Exchange database-level repair, and for mailbox-level repair, there can be up to 100 requests active on Exchange Server.

How Many Types Of Corruption Repaired By New-MailboxRepairRequest Cmdlet?

There are 4 types of corruption that you can use by this Exchange PowerShell command:

  • FolderView
  • SearchFolder
  • ProvisionedFolder
  • AggregateCounts

Note: You must have a required set of permissions to execute the New-MailboxRepairRequest PowerShell cmdlet. If you don’t have these permissions, then you won’t be to run the command or will get an error message.

Different Parameters Of New-MailboxRepairRequest Command

Users can use the parameters in the cmdlet given below while repairing the mailboxes and database:

-Archive
-Confirm
-CorruptionType
-Database
-DetectOnly
-DomainController
-Force
-Mailbox
-WhatIf
-StoreMailbox

Use Exchange PowerShell New-MailboxRepairRequest Cmdlet

Follow the commands given below to repair the database and mailbox:

1. Detect and repair all Folder views for Max mailbox

New-MailboxRepairRequest -Mailbox [email protected] -CorruptionType FolderView

2. Following cmdlet only detect and report corruption issue on Search & Provisioned folder for Meghan mailbox.

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

3. This command repair and detect aggregate counts of all Exchange mailbox on keven database

New-MailboxRepairRequest -Database Keven -CorruptionType AggregateCounts

4. Detect and Repair all corruption types for vox mailbox and archive

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

5. To detect and correct all existing corruption issues, create a variable to identify Kev mailbox. Later on, this variable is used to specify values for StoreMailbox and Exchange database parameters to generate the request.

$Mailbox =Get-MailboxStatistics Kev
New-MailboxRepairRequest-Databases$Mailbox.DatabaseStoreMailbox$Mailbox.MailboxGuid-CorruptionType ProvisionedFolder,SearchFolder,AggregateFolder,FolderView

This cmdlet doesn’t provide any feedback information in the Exchange Management Shell. For this one has to check the feedback logs in the application in Event Viewer under the Microsoft ExchangeIS Mailbox Store.

Perfect Alternative for the Aforementioned Command

If you feel the above-discussed procedure is a bit difficult for you or you are facing some sort of issues while running these commands, then you can go with SysTools Exchange Server Recovery Software. This is a competent solution that helps users to repair minor as well as major corruption issues with ease.

Download Now Purchase Now

The software is designed with advanced set of algorithms that makes the repair job seamless. The only thing that you need to do is to dismount the EDB file of the mailbox that you feel is corrupted. Then, load that EDB file into the software and repair those Exchange EDB files without any issue.

Additionally, once the corruption level is fixed, you can import the EDB file into Exchange using the same software. So, it is a complete solution for you to get your job done in quick steps.

Bringing It All Together

In this write-up, we have explained about the New-MailboxRepairRequest cmdlet, where it is used, various parameters, and types of corruption it repairs. The user and Exchange admin can easily repair Exchange mailbox and database without dismounting it. To use this command, you must have the technical knowledge and hands-on experience, if you find any difficulty to use this method then you can use the tool mentioned here which repairs the corrupt offline/dismounted file in a simplified way.

  author

By Ashwani Tiwari

Being a Chief Technical Analyst, I am aware of the technicalities faced by the user while working with multiple technologies. So, through my blogs and articles, I love to help all the users who face various challenges while dealing with technology.