During setup of Exchange Server 2013 you may encounter the following error while preparing Active Directory or installing the first Exchange server in the forest.

Exchange 2013 Setup Error
If you are running setup on a Windows Server 2012 server the error is:
The following error was generated when “$error.Clear();
install-ExchangeSchema -LdapFileName ($roleInstallPath + “Setup\Data\”+$RoleSchemaPrefix + “schema0.ldf”)
” was run: “The system cannot find the file specified”.
On a Windows Server 2008 R2 SP1 server the error is:
The Active Directory Schema is not up-to-date and Ldifde.exe is not install
ed on this computer. You must install Ldifde.exe by opening Windows Powershell,
running ‘Import-Module ServerManager’, then running ‘Add-WindowsFeature RSAT-ADD
S’. Alternately you can restart setup on a domain controller.
These errors occur because Exchange setup is attempting to use the LDIFDE.exe tool to update the Active Directory schema for Exchange Server 2013, and the tool is not installed by default on these operating systems.
The solution is to install the RSAT-ADDS components on the server.
For Windows Server 2008 R2 (SP1 or later), in PowerShell run:
Import-Module ServerManager Add-WindowsFeature RSAT-ADDS
For Windows Server 2012, in PowerShell run:
Install-WindowsFeature RSAT-ADDS
Re-run setup and the error should not occur this time.



