Home » MS Exchange » Use PowerShell Command to Repair Mailbox Exchange 2016 from Corruption | Get the Solution

Use PowerShell Command to Repair Mailbox Exchange 2016 from Corruption | Get the Solution

author
Published By Ashwani Tiwari
Aswin Vijayan
Approved By Aswin Vijayan
Published On January 25th, 2024
Reading Time 5 Minutes Reading
Category MS Exchange

Summary: If your are looking for a solution to use PowerShell command to repair mailbox Exchange 2016 from corruption by using New-MailboxRepairRequest cmdlet? If yes, then read the article where we have provide solution and guide users to repair corrupt Exchange mailbox.

Numerous IT companies and other industry verticals use the Exchange Server for the communication and business purpose. As it is one of the most popular mail server which is extensively used around the world. All the Exchange data such as: mails, notes, tasks, calendars, contacts, journals, etc… are stored in Exchange mailboxes.

This information is very essential for organization. That’s why it is important to keep the mailboxes safe and secure from various threats like – corruption, error, and much more because if the Exchange database mailbox is corrupted then users cannot access the mailbox. Also, they can’t send or receive mails and it would disrupt the work flow. In addition to this there are chances of data loss.

If any users or company lose their Exchange mailboxes data due to corruption then they have to face its consequences which is given below:

  1. Heavy financial loss
  2. The users or clients start losing faith in them
  3. Their growth will start decreasing
  4. Have to face the legal penalties or charges
  5. In worst scenario, they run out of business

To avoid all these problems it is important to repair corrupt Exchange mailbox so that they does not have to face these repercussions.

How to Use PowerShell Command to Repair Mailbox Exchange 2016 from Corruption?

Users can use the Exchange New-MailboxRepairRequest PowerShell cmdlet which helps users to detect and fix the Exchange database mailbox corruption issue. You can use this cmdlet on Exchange Server 2010 / 2013 / 2016 and above version to repair the corrupted EDB mailbox.

One can use this Exchange PowerShell command to on the particular mailbox or all the mailboxes in the DB. When users execute the cmdlet then in between the process no one can access the mailbox which is currently being repaired. Also, when you run the repair request, no one can stop it unless someone dismount the database.

So, to avoid the performance issue/problem, for the database level repair there should be only one request which can be active on the server and for the mailbox level repair, upto 100 requests can be active on the server. Before running the cmdlet to repair corrupted mailbox Exchange 2016 / 2013 / 2010 users have to provide some permissions.

New-MailboxRepairRequest PowerShell Command to Repair Mailbox Exchange 2016

1. Insert the command mentioned below to detects & repair all the folder view for the mailbox param@contoso.com

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

2. Use this PowerShell cmdlet to only detect & report on the SearchFolder and ProvisionedFolder corruption issues to the bob mailbox. Also, the following command doesn’t repair mailbox.

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

3. Execute the command given below in order to detect as well as repairs all the corruption types for the tori Exchange mailbox & archive.

New-MailboxRepairRequest -Mailbox tori -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,Folderview -Archive

4. Use the command provide below to detect & repairs the AggregateCounts for all the Exchange mailboxes on the mailbox database i.e. MB-DB

New-MailboxRepairRequest -Database MB-DB -CorruptionType AggregateCounts

5. In this example, generate the variable which identifies the MAX mailbox & then use that particular variable to specify the value foe the StoreMailbox & Database parameters to create the request to detect & repair all the corruption types.

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

Shortcoming Of Manual Method

  1. Doesn’t repair the offline or dismounted Exchange database file & mailboxes
  2. Require in-depth knowledge, technical skills, and hands-on experience
  3. It is a prolonged and time-consuming method

Use Automated Wizard to Repair Corrupt Offline Exchange EDB File

Users can use the EDB Recovery Tool which support dismounted/offline Exchange database file (Public and Private) & used by many technical as well as non-technical users to repair the corrupted .edb file in a simplified waywithout using any cmdlet.

Free Download
Buy Now

This utility offers scanning mode option i.e. Quick and Advance scan to recover and repair minimally & major corrupted EDB file in a hassle freeway. So, to repair minimal Exchange database file corruption click on Quick scan and for highly corrupted file select the advance scan mode option. After recovery, users can export the recovered Exchange database mailboxes to the Live Exchange Server 2016 / 2013 / 2010 / 2007 / 2003 mailboxes, Office 365, and multiple file format.

Notable Features Of Automated Solution

  1. Support Offline Exchange Database & Streaming Media File
  2. Preview the EDB mailboxes items before conversion
  3. Keep metadata intact & preserve actual folder structure
  4. Remove (SMIME/OpenPGP) email encryption from Exchange database mailboxes
  5. Date filter option export Exchange data within date range
  6. Export selective data items via category option
  7. Suitable with all Exchange Server & MS Outlook (2003 – 2016), and Windows OS

Working Steps to Repair Corrupt Offline Exchange EDB File

1. Download and launch the automated wizard in your local system

install software

 

 

2. Select the add file button to load offline corrupted .edb file

click on add file

3. Select advance scanning mode option >> Click on add button

select advance scan mode

4. Preview recovered EDB & mailboxes >> Click on export button

preview recovered edb

5. Select the Exchange EDB mailboxes and export it to the desired export option

export selected mailboxes

 

Bringing It All Together

In this article, we have provide the complete information on how to use PowerShell command to repair mailbox Exchange 2016 from corruption by using the solution provide here. In case, if you want to repair the offline corrupted Exchange database file then they can use the advance solution mentioned in the above section which easily repaired the minor or major corrupted offline/dismounted EDB file without any hassle. Rest, according to your preferences you can select the method and repair the Exchange mailbox.

offer-banner