Exchange EDB Guides

Exchange Server Crashed Save the database files first, then rebuild the server or open the files offline

Leena Taylor Paul By Updated October 21, 2026 9 min read

Exchange server crashed? Save your .edb databases and transaction logs on a separate disk before you attempt a repair, since mailboxes live inside them.

Setup /Mode:RecoverServer rebuilds the server from Active Directory settings. Mount saved databases afterwards to bring mailboxes back. Open the .edb files offline when no rebuild is possible.

Rebuild switch Setup /Mode:RecoverServer
Must match Server name, Windows Server version, drive letters
No rebuild possible Open the .edb offline

Exchange server crashed after a dead RAID controller or a broken Windows install? You face two problems, a working server and your mailbox databases.

Active Directory stores almost all settings of Exchange 2016 and 2019 Mailbox servers, per Backup, restore, and disaster recovery in Exchange Server. Your mail sits in .edb files on disk, so those files decide how much you get back.

What to Check First When Your Exchange Server Crashed

Check your data disks before anything else. Working disks with your .edb files make this a rebuild. Damaged disks make it a recovery.

  • Find .edb files and log folders. New-MailboxDatabase lists %ExchangeInstallPath%Mailbox\<database name> as the default path from Exchange 2010 onward.
  • Copy .edb files, log files and the checkpoint file to another disk before a repair. Microsoft advises a copy first for Exchange 2007 repairs, per How to Run Eseutil /P (Repair).
  • Check which backups exist and how old they are.
  • If ransomware encrypted files, stop here and follow Exchange Server Ransomware Recovery.
  • Note server name, Windows Server version, drive letters and cumulative update. Name, Windows version and drive letters must match.
  • Find the install path in ADSI Edit. Server objects store it in msExchInstallPath, per Recover Exchange servers.
Admin copying database and log files from a crashed server
Copy database and log files to another disk before you rebuild the server.

“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 Path Fits Your Crash?

When your Exchange server crashed, three things set your path. Working data disks, a surviving Active Directory and another Exchange server decide it.

Situation Path Guide
Hardware or Windows died, data disks work Rebuild with Setup /Mode:RecoverServer, then mount databases Rebuild steps below
Server was a DAG member Remove it from the DAG, rebuild, add it back DAG steps below
Another Exchange 2016 or 2019 server has the same Exchange and Windows Server versions Mount databases there with database portability Import EDB Into Exchange 2019
Only a database backup is left Restore into a recovery database (Exchange 2016 and later), then copy mailboxes out Exchange Recovery Database
No server can be rebuilt or Active Directory is gone Open .edb files offline and export mail Offline steps below

Users who need to send mail today can use a temporary mailbox on another server. Microsoft names this method dial tone portability. Staff find the steps in Dial tone portability in Exchange Server.

How do You Rebuild a Crashed Exchange Server With RecoverServer?

After an Exchange server crashed, Microsoft lets you recover Exchange server installs with Setup /Mode:RecoverServer, short form /m:RecoverServer. Setup applies Active Directory settings stored for a server that has the same name, per Recover Exchange servers.

Recover Exchange servers lists four conditions. You need the lost server's name, the same Windows Server version, the same drive letters for mounted databases and membership in Domain Admins and Organization Management. Microsoft estimates 20 minutes to rebuild Exchange server settings from Active Directory on a server outside a DAG.

1
Reset the computer account
Reset the lost server's computer account in Active Directory.
2
Build the replacement
Install the same Windows Server version and give the machine the lost server's name. Join it to the same domain. Microsoft says recovery fails when the names differ.
3
Install prerequisites
Add the Windows features and runtimes your Exchange version needs. Create the drive letters the lost server used for mounted databases.
4
Start Setup in recovery mode
Mount your Exchange ISO and open a Command Prompt. Start Setup.exe with /Mode:RecoverServer and add /TargetDir when Exchange sat outside %ProgramFiles%\Microsoft\Exchange Server\V15.
5
Restart the server
Reconfigure custom settings before production. Restart the server afterwards.
6
Bring back the databases
Put saved .edb and log files at old paths, check them with eseutil /mh and mount them.

Exchange 2016 and 2019 Setup needs /IAcceptExchangeServerLicenseTerms_DiagnosticDataON or /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF since the September 2021 cumulative updates. Microsoft allows both. Examples below use OFF.

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

Use the cumulative update the lost server had. Without that media, Microsoft says to use the latest one.

Setup can fail when the Scripting Agent was enabled on the lost server. Microsoft says to disable it with Disable-CmdletExtensionAgent before recovery and enable it again afterwards when other Exchange servers exist.

How do You Bring Databases Back After the Rebuild?

RecoverServer brings back the server and leaves your mail in saved .edb files. Microsoft's Exchange 2007 guide says Setup does not restore data stored in the databases, per Understanding Setup /M:RecoverServer.

Put database and log files at their old paths. Microsoft's portability steps for Exchange 2016 and 2019 check the Clean Shutdown state before a mount and call for soft recovery on databases left in a different state, in Move a mailbox database using database portability in Exchange Server.

Database state Next move
Clean Shutdown Mount with Mount-Database
Dirty Shutdown, all logs present Apply saved logs using eseutil /r
Dirty Shutdown, logs missing Use a backup or export mail from the offline .edb
Corruption after replay fails Repair a copy with eseutil /p as last step
eseutil /mh "F:\ExchData\MDB2\MDB2.edb"
eseutil /r E01 /l "F:\ExchData\MDB2" /d "F:\ExchData\MDB2"
Mount-Database MDB2
Get-MailboxDatabase -Status | Format-Table Name,Mounted

Eseutil /M File Dump Mode confirms that /mh changes no files. Exchange 2007 guidance in Eseutil /R Recovery Mode says soft recovery commits finished transactions and rolls back unfinished ones. Without all required logs, Microsoft says you cannot complete a soft recovery.

Mount-Database needs the Microsoft Exchange Information Store service and the Microsoft Exchange Replication service to be started. Set AllowFileRestore to $true when Mount-Database rejects a database file that differs from its Active Directory entry, as Set-MailboxDatabase describes.

Exchange Database Won't Mount covers error codes. Exchange Database Dirty Shutdown covers log replay. Before You Run Eseutil /p lists what hard repair costs.

Plan two fixes after the rebuild.

  • RecoverServer assigns a self-signed certificate to Exchange services that need SSL/TLS. Import your public certificate again or Outlook users see a certificate prompt.
  • Setup does not restore local web.config changes or custom registry entries, per Backup, restore, and disaster recovery in Exchange Server. Recreate them before production.

What if Your Exchange Server Crashed as a DAG Member?

Remove the server's database copies and DAG membership first, rebuild it next and add it back last. Microsoft estimates 30 minutes in Recover a database availability group member server in Exchange Server.

Note replay lag and truncation lag times before you remove copies. Offline members need the ConfigurationOnly parameter and a manual eviction from the Windows failover cluster.

Get-MailboxDatabase DB1 | Format-List *lag*
Remove-MailboxDatabaseCopy DB1\MBX1
Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1 -ConfigurationOnly
# evict MBX1 from the Windows failover cluster
# reset the computer account, then start Setup /m:RecoverServer on MBX1
Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1
Add-MailboxDatabaseCopy -Identity DB1 -MailboxServer MBX1

Restore lag times with ReplayLagTime and TruncationLagTime when old copies had values above 0. Reconfigure virtual directories and customizations too. Test-ReplicationHealth and Get-MailboxDatabaseCopyStatus confirm the result.

What if You Cannot Rebuild the Crashed Server?

No rebuild possible after your Exchange server crashed? Open .edb files directly when Active Directory, install media or a matching Windows Server version is gone. One .edb file contains all mailboxes with folders, calendars and attachments.

Exchange EDB Converter from Univik opens dismounted and dirty Exchange 2000 to 2019 databases offline in Windows 11 and Windows 10. Your PC needs no Exchange install and no Outlook profile.

Univik Software applies transaction logs saved next to your crashed database onto a working copy in the manner of eseutil /r. Missing logs send the copy to the app's own repair routine.

Choose PST for Outlook while HTML, PDF, MBOX, EML, MSG and CSV index formats stay available. Direct uploads reach Office 365, Gmail or IMAP. How to Convert EDB to PST covers PST steps.

Main window with an opened database and its mailbox folder tree
In the app. Banner counts mailboxes and messages, so you see what survived the crash before you export.
Point RecoverServer rebuild Univik Software
Exchange Server install Required Not required
Mailboxes afterwards Mount databases next Export straight from .edb
Source database Mounted by Exchange Original file unmodified
Cost No extra tool From $99 for 2 PCs
Trial Not applicable 10 messages per folder

Working folder capacity needs your .edb size and 256 MB more, since Univik Software opens only a copy of dirty or locked databases.

How do You Prepare for the Next Exchange Server Crash?

Prepare with Exchange aware backups, extra database copies and a list of custom settings. Microsoft covers all three in Backup, restore, and disaster recovery in Exchange Server.

  • Use a backup application that supports Exchange through VSS. Microsoft says Exchange supports only Exchange aware VSS backups.
  • Deploy three database copies without lag times before you drop RAID or VSS backups. Microsoft strongly recommends that minimum.
  • Track web.config and registry changes with change management. Microsoft recommends it because Setup does not restore them.
Key Takeaways
  • Exchange server crashed with working data disks? Rebuild the server and mount your databases.
  • Setup /Mode:RecoverServer needs the old server name, Windows Server version and drive letters.
  • After an Exchange server crashed, RecoverServer restores settings and leaves mailboxes in your .edb files.
  • Copy database and log files before replay or repair.
  • Exchange server crashed beyond a rebuild? Open the .edb files offline.
Check What Survived the Crash

Browse mailboxes after your Exchange server crashed with Univik Software. Trial edition saves 10 messages per folder. Licences start at $99 for 2 PCs.

Free Download See all features

Questions About a Crashed Exchange Server

Can I rebuild the Exchange server under a new name?

No. RecoverServer needs the old name, per Recover Exchange servers. Build a new server under a new name and move your databases with database portability instead. Microsoft's portability guide requires matching Exchange and Windows Server versions on the old and new servers, as listed in Move a mailbox database using database portability in Exchange Server.

Does Setup /Mode:RecoverServer restore the mailboxes?

No. Setup restores server settings from Active Directory and leaves the mail in your databases. Microsoft's Exchange 2007 guide says it does not restore data stored in the databases, per Understanding Setup /M:RecoverServer.

Do I need the same cumulative update?

No. Use the same one when you have the media. Without it, Microsoft says to use the latest cumulative update. Recovered servers show the older build number until you upgrade, per Recover Exchange servers.

What if Active Directory crashed as well?

RecoverServer needs Active Directory. Microsoft says it uses the existing Exchange server object there, per Use unattended mode in Exchange Setup. Restore Active Directory first or open the .edb files offline.

Why do Outlook users get certificate warnings after the rebuild?

RecoverServer assigns a self-signed certificate to Exchange services that need SSL/TLS. Import your earlier certificate again and set those services to use it, as Recover Exchange servers explains.

Should I repair the databases before anything else?

No. Copy the files and try log replay or an offline export first. Earlier backups become invalid after a repair and a database can end up too damaged to mount, says Microsoft's Exchange 2007 guide in How to Run Eseutil /P (Repair).

Can I recover mailboxes after my Exchange server crashed with no backup?

Yes, when the .edb files survived. Univik Software works offline on a copy of your surviving database and converts mailboxes into MBOX, MSG, EML or PST files. Trial edition caps exports at 10 messages per folder.

Does Setup /m:RecoverServer work on Exchange 2007 and 2010?

Yes. Both releases use the same switch, per Understanding Setup /M:RecoverServer and Recover an Exchange Server. Exchange 2007 recovers only on the Windows Server version the lost server used.

Leena Taylor Paul

Leena Taylor Paul covers Exchange server recovery for the Univik team, which has shipped Windows mail tools since 2013. Last checked October 2026. Contact our support team if your crashed server still will not come back.

More Exchange EDB Guides

All Univik guides for Exchange mailbox databases, grouped by what you need to do next.