Exchange EDB Guides

Exchange Server Crashed Rebuild the server from Active Directory or read the database files it left behind

Leena Taylor Paul By Updated October 4, 2026 5 min read
Quick Answer

If the disks holding the .edb files survived, the mailboxes survived. Rebuild the server or read those files directly.

Setup /Mode:RecoverServer rebuilds a lost Exchange server from the settings kept in Active Directory, on a machine with the same name and Windows version. It does not bring back mailboxes; you mount the old databases afterwards. When a rebuild is not possible, open the .edb files offline and export the mail.

Rebuild toolSetup /Mode:RecoverServer
Must matchServer name, Windows version, drive letters
No rebuild possibleRead the .edb offline

The server will not boot, the RAID controller died or Windows is beyond repair. Exchange itself keeps most of its configuration in Active Directory, and the mail lives in .edb files on disk. So when an Exchange server crashed like this, you face two separate problems: getting a working server back and getting the mailbox databases back onto it.

What should you check first after an Exchange server crash?

Find out whether the database files survived before you touch anything else. If the Exchange server crashed but its data disks are intact, you have a rebuild job. Damaged data disks make it a recovery job.

  • Locate each .edb file and its log folder. On Exchange 2013 and later the default is Program Files\Microsoft\Exchange Server\V15\Mailbox, in a folder named after the database.
  • Copy every .edb file with all of its transaction logs (E00, E01 and so on, one prefix per database) and its .chk file to another disk before any repair.
  • Check what backups exist and how old they are.
  • If ransomware encrypted the files, stop here and follow our ransomware recovery guide instead of a rebuild.
  • Note the server name, Windows version, drive letters and Exchange cumulative update. The first three must match. The same cumulative update is best, but the latest one also works.
An administrator copies a surviving Exchange server drive before rebuilding the crashed server
Before rebuilding the server, copy the surviving database and log files to safe storage.

“Copy the database files off the dead server before anyone reinstalls anything. The rebuild can wait an hour; the only copy of the mail cannot.”

Nick Rogers, Founder of Univik

Which recovery route fits your crash?

The route depends on what still works: Active Directory, other Exchange servers and the data disks.

SituationRouteGuide
Hardware or Windows died, data disks fineRebuild with Setup /Mode:RecoverServer, then mount the databasesThis page
Server was a DAG memberRemove it from the DAG, rebuild, add it backThis page
Another Exchange server with the same Exchange and Windows Server versions runs in the organizationMount the databases on that serverMove the database to another server
Only a backup of the database is leftRestore it and copy mailboxes outRecovery Database limits
No server can be rebuilt, or Active Directory is gone tooRead the .edb files offline and export the mailThis page

Users who need to send mail today can get a temporary empty database on another server while the old one is recovered. Microsoft calls this dial tone portability.

How do you rebuild a crashed Exchange server with RecoverServer?

Setup /Mode:RecoverServer is how Microsoft lets you rebuild Exchange server installs: it reads the lost server's configuration from Active Directory and installs Exchange with it. Microsoft lists the conditions in Recover Exchange servers:

  • the same server name as the lost server
  • the same Windows Server version
  • the same drive letters for the mounted databases
  • an account in Domain Admins and Organization Management
  1. Reset the computer account. In Active Directory Users and Computers, reset the computer account of the crashed server.
  2. Build the replacement. Install the same Windows Server version, give the machine the same name and join it to the same domain.
  3. Install prerequisites. Add the Windows features and runtimes your Exchange version needs, and match the old drive letters.
  4. Run Setup in recovery mode. Mount the Exchange ISO and run Setup.exe with /Mode:RecoverServer, adding /TargetDir if Exchange was not in the default path.
  5. Bring back the databases. Put the surviving .edb files and logs at their old paths, check them with eseutil /mh and mount them.

Since the September 2021 cumulative updates, Setup needs /IAcceptExchangeServerLicenseTerms_DiagnosticDataON or /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF. The examples use the OFF switch:

E:\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /Mode:RecoverServer
E:\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /Mode:RecoverServer /TargetDir:"D:\Program Files\Exchange"

Use the same cumulative update the server ran. If you do not have that media, Microsoft says to use the latest one.

How do you bring the databases back after the rebuild?

RecoverServer brings back the server, not the mail. Put the surviving database files and logs at the paths they had before, check their state and mount them:

eseutil /mh "D:\DB01\DB01.edb"
Mount-Database DB01
Get-MailboxDatabase -Status | Format-Table Name,Mounted

A database that shows Dirty Shutdown needs its logs replayed first, as covered in our dirty shutdown guide. Two more things to redo after the rebuild:

  • RecoverServer assigns self-signed certificates. Import your public certificate again or Outlook users see warnings.
  • Custom settings that lived on the server itself, outside Active Directory, need to be set up again.

What if the crashed server was in a DAG?

Take the dead server out of the database availability group first, rebuild it, then add it back with Add-MailboxDatabaseCopy, which seeds the copies again. Write down any replay lag settings before you remove the copies. A crashed member is offline, so remove it with -ConfigurationOnly and then evict it from the Windows failover cluster by hand.

Remove-MailboxDatabaseCopy DB1\MBX1
Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1 -ConfigurationOnly
# evict MBX1 from the Windows failover cluster
# reset the computer account, then run Setup /Mode:RecoverServer on the rebuilt MBX1
Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1
Add-MailboxDatabaseCopy -Identity DB1 -MailboxServer MBX1

The other DAG members keep serving the mailboxes during the rebuild, so users notice little if the copies were healthy.

What if the crashed server cannot be rebuilt?

Read the database files directly. RecoverServer needs Active Directory, the same Windows version and Exchange install media, either the same cumulative update or the latest one. When any of those is missing, or the company has moved on from Exchange, the .edb files are still a complete record of every mailbox.

Univik EDB Converter opens the copied .edb on any Windows PC with no Exchange installed. It replays the logs when you give it the log folder, and saves each mailbox as PST or uploads it to Office 365.

Univik EDB Converter showing an Exchange 2019 database copy with six mailboxes and its folder tree
In the app: the banner shows the database state and counts, so you see what survived the crash before you export.
Key Takeaways
  • Exchange keeps most server settings in Active Directory and the mail in .edb files.
  • Setup /Mode:RecoverServer rebuilds the server but does not restore mailboxes.
  • The rebuilt server needs the same name, Windows version and drive letters.
  • Mount the surviving databases afterwards and reimport the public certificate.
  • When no rebuild is possible, read the .edb files offline and export the mail.
Check what survived the crash

Open a copy of the .edb from the crashed server and see every mailbox before you plan the rebuild. The trial saves 10 messages per folder.

Free Download See all features

Questions about a crashed Exchange server

Not with RecoverServer, which needs the old name. Build a new server under a new name and move the databases to it with database portability instead. That server needs the same Exchange and Windows Server versions.

No. It restores the server configuration from Active Directory. The mailbox databases have to be put back and mounted separately.

Use it if you have it. Without that media, Microsoft says to use the latest cumulative update. The version shown stays at the older build until you run an upgrade.

RecoverServer reads the server settings from Active Directory, so it cannot run without it. Restore Active Directory first, or read the .edb files offline.

RecoverServer gives the services self-signed certificates. Import the certificate the server used before and assign it to the same services.

No. Copy the files and try log replay or an offline read first. A hard repair deletes the pages it cannot read.
Leena Taylor Paul

Leena Taylor Paul wrote this guide with the Univik team, which has shipped Windows mail tools since 2013. This guide covers rebuilding a crashed Exchange server and getting its mailbox databases back. Last checked October 2026. Stuck? Contact our support team.

More Exchange EDB Guides

Every Univik guide for Exchange mailbox databases in one place. Start with the job in front of you.