I have a old server running SBS 2003, the second server is 2008R2 so I have promoted it to DC.
I have been trying to install Exchange 2010 on a Server 2008 R2 DC but the installation fails at the installation of the Hub Transport Role, Process failed with exit code -1.
I spent over a week trying to do research on a while goose chase and found that IIS and WPAS can cause these problems after a working server has been promoted to DC, I have tried un-installing both then re-installing with no avail.
Looking at the log the preferred DC and Global Catalog server is the second 2008R2 Server that I promoted to DC, not the Original SBS 2003 machine, could this be causing any problems?
The ExchangeSetup.log shows the following is where it fails:
[08/28/2014 04:47:22.0909] [2] Active Directory session settings for 'precompile-ManagedBinary' are: View Entire Forest: 'True', Configuration Domain Controller: 'myserver.domain.com', Preferred Global Catalog:
'myserver.domain.com', Preferred Domain Controllers: '{ myserver.domain.com }'
[08/28/2014 04:47:22.0925] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe with arguments: install "C:\Program Files\Microsoft\Exchange Server\V14\bin\microsoft.Exchange.PowerShell.configuration.dll" /queue /nologo /verbose
[08/28/2014 04:47:23.0190] [2] Process standard output: Failed to load the runtime. (Exception from HRESULT: 0x80131700)
[08/28/2014 04:47:23.0190] [2] Process standard error:
[08/28/2014 04:47:23.0190] [2] [ERROR] Unexpected Error
[08/28/2014 04:47:23.0190] [2] [ERROR] Process execution failed with exit code -1.
[08/28/2014 04:47:23.0190] [2] Ending processing precompile-ManagedBinary
[08/28/2014 04:47:23.0205] [1] The following 1 error(s) occurred during task execution:
[08/28/2014 04:47:23.0205] [1] 0. ErrorRecord: Process execution failed with exit code -1.
[08/28/2014 04:47:23.0205] [1] 0. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskException: Process execution failed with exit code -1.
[08/28/2014 04:47:23.0205] [1] [ERROR] The following error was generated when "$error.Clear();
$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.PowerShell.configuration.dll");
precompile-ManagedBinary -BinaryName $fullPath;
" was run: "Process execution failed with exit code -1.".
[08/28/2014 04:47:23.0205] [1] [ERROR] Process execution failed with exit code -1.
[08/28/2014 04:47:23.0205] [1] [ERROR-REFERENCE] Id=AllRolesPrecompileManagementBinaries___922e3423e7724c0e8892fe798af5ca08 Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
[08/28/2014 04:47:23.0205] [1] Setup is stopping now because of one or more critical errors.
[08/28/2014 04:47:23.0205] [1] Finished executing component tasks.
[08/28/2014 04:47:23.0252] [1] Ending processing Install-BridgeheadRole