Active Directory is the place where all the Exchange Server settings are stored. So, it is possible to rebuild the configuration of the Exchange environment from Active Directory. Here is how you can do this:
Recover the lost Exchange Server
- Reset a Computer Account:
To do this, you must be a member of Domain Admin, Enterprise Admin, or Account Operators. Use the following method to reset the computer account:
- Follow Start>>Control-Panel>>Administrative Tools>>Active Directory Users and Computers.
- Click Computers.
- Go to Details and click Reset Account.
- After installing the OS on the new server, give it the same name as that of the lost server.
NOTE – It is essential to name the new server as the older one. Otherwise, it will not work correctly.
- Add the sever to the domain of the lost server.
- Install all the prerequisites for Exchange Server 2016.
- Start the command prompt after login on to the Exchange Server, and run the following command –
Setup /m:RecoverServer /IAcceptExchangeServerLicenseTerms
- Finally, configure the server as per your requirements and restart.
- To verify the reocvery, check if the Microsoft Exchange Server services are running in the Windows Services tool.
Note: Follow the same procedure for Exchange 2013 and 2010 also. For Exchange 2010, you need to run the following command –Setup /m:RecoverServer
Recover a DAG member server
The method mentioned above is used to retrieve a lost Exchange Server which is not a member of a Database Availability Group (DAG). There is a different method to recover a DAG member server:
- To recover any replay lag from mailbox database copy, run the following command –
Get-MailboxDatabase MyExchangeDatabase | Format-List *lag*
- To remove any mailbox database copy, run the following command –
Remove-MailboxDatabaseCopy MyExchangeDatabase \MBX1
- To remove the configuration of a failed server from DAG, run the following command –
Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1
- Go to Active Directory and reset the computer account.
- Run the following command with using the original setup media –
- To add the recovered server to DAG, run the following command –
Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1
- To know the status of the retrieved DAG server, use the following command –
Get-MailboxDatabaseCopyStatus -Server < MyExchangeDatabase >
Recover data from corrupt EDB files
Using the above method, you can recover a lost server, but all the data you want to access is also lost. Exchange database information can be recovered from an offline EDB file. For this, you can take the assistance of Kernel for Exchange Server Recovery tool. This EDB Recovery tool help to quickly recover complete Exchange mailbox data and convert EDB to PST, Live Exchange, and Office 365.