Recovering Exchange Server 2013 on Fresh OS Install
From DFWLPiki
To perform recovery of a lost server, first prepare a new system. In this case of a single exchange server environment, I rebuilt the server with the exact same system name, DLP-DEVEXCH01.
Run prerequisite installations and feature installations:
Install-WindowsFeature Server-Media-Foundation, Web-Dyn-Compression, Web-WMI, Web-Client-Auth, Web-Http-Redirect, Web-Http-Tracing, Web-Request-Monitor
Copy Exchange 2012 SP3cu6 to a local directory. Exchange server information is stored in the active directory, and if you attempt to run the install right out of the directory, you will get an "inconsistant state" error. Installation must be run in recovery mode:
cd C:\users\jhorne\Desktop\Exchange2013-x64-cu6 .\setup.exe /m:RecoverServer /IAcceptExchangeServerLicenseTerms /InstallWindowsComponents /targetdir:"d:\Program Files\Microsoft\Exchange Server\V15"