How to Repair a Corrupt Exchange Database?

Aftab Alam
Aftab Alam linkedin | Updated On - April 20, 2023 |

Read time 8 minutes

Exchange Server from Microsoft has revolutionized professional email communication in enterprises. Now email communication within and outside the organization has become more convenient and easier irrespective of the size of the firm.

To make the messages completely secure, Microsoft has introduced a lot of features in Exchange. But still, many threats are roaming around to damage the database. These threats make the Exchange database corrupt and inaccessible. Some major causes of Exchange database corruption are –

  • Virus attack
  • User error
  • Abrupt shutdown
  • Application malfunction
  • Error in database objects
  • Improper changes in the database schema

Security features of Exchange Server 2019

The latest version of Exchange Server has upgraded the security features to safeguard the user mailboxes. Some of the prominent features are following-

Windows Server Core Support – Using Exchange Server on Windows covers a lesser surface area. It reduces the chances of external attacks.

Block external access to Exchange admin center (EAC) and the Exchange Management Shell – There is a Client Access Rule to block the external usage of Exchange Admin Center and Exchange Management Shell.

TLS 1.2 is the only version that’s enabled by default – For the betterment of client and server connections, the default encryption will be TLS 1.2 only. The older algorithms like DES, 3DES, RC2, RC4, and MD5 will remain disabled.

Let’s see the two methods to recover the lost data from a corrupt Exchange database and convert EDB file to PST

  • Manual method using Eseutil utility
  • Automated method using Kernel for Exchange Server
Instant Solution

Try automated solution Kernel for Exchange Server Recovery to recover corrupt exchange database and export to PST, Live Exchange and Office 365.

Manual Method Using Eseutil Utility

Eseutil is an inbuilt tool within the Exchange Server which is useful to repair the corrupt databases, defragment them, check database integrity, and reduce the size.
The default location of the tool in Exchange 2013/2016 is –

C:\Program Files\Microsoft\Exchange Server\V15\Bin

default location of the Eseutil tool

The functional aspect of Eseutil tool is quite broad, and you can perform following actions using multiple switches –

  • To repair the database – eseutil /p
  • To defragment the database –eseutil /d
  • To restore the database – eseutil /r
  • To verify checksum in the database – eseutil /k
  • To check the database integrity – eseutil /g
  • To do hard recovery– eseutil /c
  • To display the headers, logs or checkpoint files – eseutil /m
  • To copy database and log files – eseutil /y
Use ESEUTIL to Defragment the Database.

Before starting defragmentation of the database, you should save a backup of the database in case of emergency.

  1. First, dismount the database from Exchange.
    Dismount-Database –Identity <name of the database>

    dismount the database from Exchange

  2. Run Eseutil /d command
    eseutil /d <name of the database> /T <location of temporary path>

    Run Eseutil command

  3. After successfully running the Eseutil command, mount the database back to Exchange.
    Mount-Database –Identity <name of the database>

    mount the database back to Exchange

  4. Repair the database with Eseutil /p command.
    eseutil /p <location of the database>

    Repair the database with Eseutil

  5. Finally, run the new-mailbox repair request command to fix the errors in the database.
New-MailboxRepairRequest -Database <name of the database> -CorruptionType <type of corruption>

run the new-mailbox repair request command

You can try this command multiple times to eleminate all issues in the Exchange database.

Automated Exchange Server using Exchange Server Recovery software

Our smartly designed and efficient Exchange database recovery software is a professional Exchange EDB to PST tool which can fully recover a corrupt Exchange database by retrieving the mailboxes (even the deleted ones). It has quite a simple interface and completes the recovery process in minimum steps possible. Here are the complete steps for Exchange Recovery

  1. Launch the software and click the Offline EDB icon.
    Launch the software and click offline EDB
  2. Select the first option of Offline EDB File
    Select the first option
  3. Browse the corrupt EDB file.
    Browse the corrupt EDB
    NOTE – If you do not know the location of EDB file, then click the Search button. It will help to search the EDB file from any folder or drive.
    search the EDB file from any folder or drive
  4. Select among the two scan options – Standard Scan and Deep Scan.
    select scan options
  5. All the data is recovered. Click Finish.
    data recovered successfully
  6. The EDB data gets added as the source and the mailboxes get listed as in the Exchange.
    EDB data gets added as the source
  7. Select an item from the mailbox folder and click Preview button. The tool will present its preview.
    Select an item to Preview
  8. To save a mailbox or message, click PST File option
    save a mailbox
  9. Select the Create New PST file option to create a new PST file.
    Create New PST file
  10. Enter the destination folder, provide a new name for PST file and click Next.
    Enter the destination folder
  11. A new PST file is created at the specified location.
    PST file is created
  12. Now you can copy mailbox, folder, or messages from the EDB file to the PST file.

copy mailbox, folder, or messages

Conclusion

Both Exchange recovery software – ESEUTIL and Exchange Database recovery software are useful in scanning the EDB file, but they have a variety in their functionalities.Use ESEUTIL run for some soft and hard recovery based on corruption and can also change the integrity of highly corrupt data. But the software does not interfere with the integrity of data and recover it without any change. If the ESEUTIL does not work, then you should use the software to repair EDB file.

Watch Complete Video to Repair a Corrupt Exchange Database

Video

Product Review by G2.com

Review from G2

Expert Reviews on TechNet: Repair corrupted EDB file and convert in PST file.

Kernel for Exchange Server