Home  /  Blog  /  Solving Exchange Server Errors   /   How to repair a corrupt Exchange database?

How to repair a corrupt Exchange database?

Solving Exchange Server Errors, by

Exchange Server is quite a robust and secure platform which has all the settings and features to protect the data. But still, many threats are roaming around to damage the database. These threats make the Exchange data 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

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

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

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.
  2. Dismount-Database –Identity <name of the database>

    dismount the database from Exchange

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

    Run Eseutil command

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

    mount the database back to Exchange

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

    Repair the database with Eseutil

  9. Finally, run the new-mailbox repair request command to fix the errors in the database.
  10. 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 recovery using Kernel for Exchange Server

Kernel for Exchange Server recovery is a professional Exchange EDB to PST converter 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 to repair Exchange Database

  1. Launch the software and click the Offline EDB icon.
  2. >Launch the software and click offline EDB” width=”1360″ height=”728″ class=”aligncenter size-full wp-image-5853″ /></p>
<li>Select the first option of <strong>Offline EDB File</strong></li>
<p><img src=

  3. Browse the corrupt EDB file.
  4. 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

  5. Select among the two scan options – Standard Scan and Deep Scan.
  6. select scan options

  7. All the data is recovered. Click Finish.
  8. data recovered successfully

  9. The EDB data gets added as the source and the mailboxes get listed as in the Exchange.
  10. EDB data gets added as the source

  11. Select an item from the mailbox folder and click Preview button. The tool will present its preview.
  12. Select an item to Preview

  13. To save a mailbox or message, click PST File option
  14. save a mailbox

  15. Select the Create New PST file option to create a new PST file.
  16. Create New PST file

  17. Enter the destination folder, provide a new name for PST file and click Next.
  18. >Enter the destination folder” width=”682″ height=”482″ class=”aligncenter size-full wp-image-5863″ /></p>
<li>A new PST file is created at the specified location.</li>
<p><img src=

  19. Now you can copy mailbox, folder, or messages from the EDB file to the PST file.
  20. copy mailbox, folder, or messages

Conclusion –

Both the tools – Eseutil utility and Kernel for Exchange Server— are useful to recover a corrupt database. But the Kernel for Exchange Server is capable of handling all types of corruption, whereas the Eseutil just checks the health of Exchange database and does not guarantee a full recovery. So, use the Kernel for Exchange Recovery tool to handle Exchange server errors correctly .

Leave a Reply

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