Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Exchange / New-MailboxRepairRequest: Fixing Corrupted Mailboxes in Exchange 2016/2013/2010

June 19, 2023 Exchange

New-MailboxRepairRequest: Fixing Corrupted Mailboxes in Exchange 2016/2013/2010

Exchange administrators often have to deal with various damages and logical errors in users’ mailboxes. Such logical errors appear in such problems as synchronization errors, Outlook hangs, incorrect representation of the folder items, wrong items number, search and public folders errors, etc.

These errors mostly occur due to failures on the Outlook, in case when client incorrectly updates MAPI flags during mailbox folders elements processing. Most often, this happens with shared mailboxes which is used by several users simultaneously. In most cases, the user may not even be aware of the presence of errors in the connected mailbox or folders, formally everything is working fine. However, with some errors, the user may experience problems while accessing the mailbox or certain folders, viewing or deleting emails or folders, etc.

If the user encounters such problems, the administrator of the Exchange server should use one of three following ways to restore such a damaged mailbox.

  • Importing data from Outlook running in cached mode to a .PST file, removing and re-creating a new mailbox for “problem” user, and finally importing data from the PST file to the new Exchange mailbox. This method assumes a certain amount of manual manipulation on the user’s computer.
    Tip. You can import and export data to PST files in Exchange Server 2019/2016/2013/2010 using the New-MailboxImportRequest and New-MailboxExportRequest cmdlets.
  • Complete unmounting of mailbox store and checking it with Isinteg.exe (Information Store Integrity Checker) utility which allows to fix damages in Exchange base on application level. This method requires quite long mail service downtime for all users whose mailboxes are allocated in a disconnected database.
    Note. In some cases, you can try to move all user`s mailboxes to the “healthy” mailbox database. In this case, you can check store integrity without disabling a large number of users. However, this technique is not always applicable for various reasons.
  • Restore the Exchange database from backup, import data from a specific mailbox to PST file, and further data transfer to the re-created mailbox. This method has one disadvantage – all emails which got to the user`s mailbox after the last backup execution time can be lost.

Exchange server administrators had to use all methods described above up to Exchange 2010 SP1 release when more convenient functions appeared to restore the logical structure of the damaged mailbox – the new PowerShell cmdlet New-MailboxRepairRequest. This cmdlet allows you to find and fix all logical errors and corruptions in the Exchange database on the application level. You can search and fix all errors for both a certain mailbox and all mailboxes in the database.

In addition, when you use the New-MailboxRepairRequest cmdlet, you do not need to completely take the mail database to offline mode. Only one mailbox for each database is unavailable, the one for which the verification and integrity is currently being performed. Before performing any of described above radical ways to restore of mailbox integrity you should definitely try to use this PoSh command.

You can use this cmdlet to find, repair, and monitor corrupted mailboxes in all supported versions of Exchange 2010, 2013, and 2016.

The syntax of New-MailboxRepairRequest cmdlet is as follows:

New-MailboxRepairRequest -Mailbox  -CorruptionType <MailboxStoreCorruptionType[]> [-Archive ] [-Confirm []] [-DetectOnly ] [-DomainController ] [-WhatIf []]

Cmdlet allows you to find and fix the following corruption types in Exchange mailboxes:

  • SearchFolder – errors in search folders;
  • AggregateCounts – check and correction on the number of items in folders and their sizes;
  • FolderView – incorrect content represented by folder views;
  • ProvisionedFolder – folder logical structure damage.

Using the DetectOnly parameter, you can check one mailbox or mailbox database without performing any actions, for example:

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

The following example will start the process of woshub user mailbox analysis and recovery for all 4 types of damage.

New-MailboxRepairRequest -Mailbox woshub -CorruptionType ProvisionedFolder, SearchFolder, AggregateCounts, Folderview

The following example will start the process of woshub user mailbox analysis and recovery for all 4 types of damage:

New-MailboxRepairRequest -Database “NYMailBase1” -CorruptionType ProvisionedFolder, SearchFolder, AggregateCounts, Folderview

The command runs in background mode and its results are not displayed in the PowerShell console. You can trace it by the taskID (RequestID) or / and with the help of Windows event log (event source: MSExchangeIS Mailbox Store; EventID 10059 – repair request start; EventID 10048 successful completion of the repair request).

The following EventIDs can also be useful (for ease of tracking the recovery procedure for Exchange mailboxes, you can combine them into a custom event view with the source MSExchangeIS Mailbox Store)

  • 10044 – The mailbox repair request failed for provisioned folders
  • 10045 – The database repair request failed for provisioned folders
  • 10046 – The provisioned folders repair request completed successfully
  • 10047 – A mailbox-level repair request started
  • 10048 – The repair request successfully completed
  • 10049 – The mailbox or database repair request failed because Exchange encountered a problem with the database or another task is running against the database
  • 10050 – The mailbox repair request task skipped a mailbox
  • 10051 – The database repair request was cancelled because the database was dismounted.
  • 10059 – A database-level repair request started
  • 10062 – Corruption was detected
  • 10064 – A Public Folder repair request started
Tip. Special cmdlet Get-MailboxRepairRequest appeared in Exchange 2013, which allows you to get the status of the mailbox repair task.

repair corrupted mailbox in exchange 2013

One of the features of the New-MailboxRepairRequest cmdlet – after it is started, the mailbox repair process cannot be interrupted without stopping the Exchange Information Store service and unmounting the mailbox database.

If there are several mailbox databases on the server, in order to maintain the performance of the Exchange server, it is not recommended to run New-MailboxRepairRequest at the same time for a large number of databases (although only one MailboxRepairRequest process is supported for one database and up to 100 repair requests per server).

Let`s look at one small case as a practice-oriented example of cmdlet usage.

The Exchange 2016 user encountered the inability to view messages in one of the Outlook folders. Appointed folder was recovered from mailbox backup. However it’s appeared impossible to delete this folder with a help of Outlook / Outlook Web App / MFCMAPI (soft or hard deletion). When you try to delete a folder in Outlook 2016, you receive the following error:

Cannot delete this folder. Right-click the folder, and then click Properties to check your permissions for this folder. See the folder owner or your administrator to change your permissions.

Outlook is synchronizing local changes made to items in this folder. You cannot remove this folder until the synchronization with the server is complete

Cannot delete this folder. Outlook Error

To check and restore the Exchange mailbox integrity, the following PoSh command was run:

New-MailboxRepairRequest -Mailbox [email protected] -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,Folderview

Powershell cmdlet New-MailboxRepairRequest in Exchange2013 After the successful completion of recovery operation (eventid 10048), the corrupted folder immediately disappeared from Outlook Web App. As for the Outlook, here we had to delete local cache (ost file) for correct mailbox display.

15 comments
1
Facebook Twitter Google + Pinterest
previous post
Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
next post
How to increase KMS current count (count is insufficient)

Related Reading

PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

October 15, 2023

Configure Email Forwarding for Mailbox on Exchange Server/Microsoft...

September 14, 2023

Find Inactive (Unused) Distribution Lists in Exchange/Microsoft 365

June 26, 2023

Send from Alias (SMTP Proxy Address) in Exchange...

April 6, 2023

How to Use Plus Addressing in Microsoft 365...

April 5, 2023

15 comments

Steve Smith September 26, 2014 - 7:07 am

It has been observed that powershell script New-MailboxRepairRequest does not work in every case of corruption. As an alternative, you can try Exchange inbuilt utility Eseutil or any third party tool to repair severely corrupt EDB files. You can try Stellar Phoenix Mailbox Exchange Recovery, Kernel Exchange Recovery, PcVita exchange recovery and many more are available.

Reply
Ricky Mitchum February 13, 2016 - 6:09 pm

Yes Steve, due to some limitations New-MailboxRepairRequest cmdlet does not always work. In our case, this built-in tool also did not work and then we took help from this third party Exchange server recovery tool.

This application successfully repaired, rebuilt, and mounted the databases back to Exchange 2013 server. Hope this will also be help to those who are able to handle severe corruption issues with New-MailboxRepairRequest command line utility. It supports to all versions of MS Exchange server i.e. 2016/2013 / 2010 / 2007 / 2003 / 2000 and MS Outlook.

Reply
Edward Ken July 17, 2016 - 2:57 pm

Thanks @Ricky!
This application did a great job in our case and we successfully fixed around 8500 corrupted mailboxes.
– Edward Ken

Reply
Rachel Bel September 30, 2014 - 10:10 am

Yes, Steve you are right that powershell script New-MailboxRepairRequest does not works with every Exchange corruption case and also not with every version of Exchange and it is highly complex and time consuming also. The Exchange admin always requires some utilities that makes their work easy and time efficient.

Reply
Sam Patrick October 11, 2014 - 12:14 pm

We successfully repaired our Exchange databases with the help of this advanced and most recommended Exchange server repair software when New-MailboxRepairRequest failed to fix the issue: Exchange Server Recovery

You can try its free demo version to evaluate it !

Sam Patrick
Exchange Admin

Reply
Robin Thomas November 11, 2014 - 7:39 am

Hi
I am completely agreed with Steve Smith and Rachel Bel users. The PowerShell Scrip New-MailboxRepairRequest doesn’t works on all types of corruption cases in Exchange server and also this feature not available in all Exchange server versions. In case if you are facing any problem which performing this New-mailboxRepairRequest feature then I recommended, try users friendly Exchange Recovery Software which helps to repair corrupted EDB file mailboxes from all version of Exchange server without any trouble.

Reply
An Exchange beginner November 26, 2014 - 11:11 am

It helped a-lot! I had used 3 party tools to fix Exchange issues, but next time I’ll diffidently try these manual methods. And I will revert again if above worked. Sounds like solution is worth.

Reply
James March 31, 2015 - 4:36 pm

I love the spam comments. Made for an enjoyable read.

Reply
Ryan Chau May 21, 2015 - 4:20 pm

Agreed with James.  Spams but look pretty legit.  Very informative Marketing material though. 

Reply
Jhon June 11, 2015 - 11:41 am

 
Thanks, this article very helpful to recover mailbox or items from exchange server 2010.

Reply
tonyhill October 30, 2015 - 11:55 am

Get more effective software, you can use third-party software, RecoveryFix for Exchange Server Recovery Tool. It can easy to recover emails, attachments, contacts, calendars, tasks, etc. from corrupt EDB files.  It can supported all update MS Exchange Server 2013 / 2010 / 2007 / 2003 / 2000.

Reply
Bernd Webster April 21, 2016 - 11:53 am

I never used any 3rd party software to fix a mailfile … if the board features couldn´t fix it its broken. There is no need to use a 3rd party application … i mean who wrote it and did you truest those developers to fix the hearth from your exchange environment? Think about it !!!

Reply
Robert Webster April 12, 2017 - 6:02 pm

Really guy? it killed nearly everything on my Exchange Server and Microsoft also stopped to help me as I used a non allowed 3rd party software …

Reply
Frank October 11, 2017 - 10:11 am

Hi James , I cannot believe that no one catches this spam…
Idiots !
Just like fake news…

Reply
Anderson July 8, 2021 - 11:15 am

If you are troubling issue with your EDB file due to some error & file has been corrupted then you can repair your EDB file by the help of this Exchange EDB file Recovery Software. It quickly scans and rectify issues from corrupted EDB file to perfectly recover Exchange mailbox data into personal storage file in the perfect manner. This software easily recovers your damaged EDB file and also converts into New PST Mailbox Outlook file format. This software comes with many advanced and well-developed features to add more accuracy and efficiency. You can download this software from here:-https://www.sametools.com/exchange/recovery/

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Configuring Anti-Spam Protection on Exchange 2013, 2016 – RBL Providers
  • Exchange Error “452 4.3.1 Insufficient system resources”
  • How to Import and Export Mailbox to PST in Exchange 2016/2013/2010?
  • Get-MessageTrackingLog: Search Message Tracking Logs on Exchange Server
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top