After a new installation of Exchange 2013, the following error could occur, which prevents ECP and Shell from working, EventID 23:
Source: MSExchange RBAC
ID: 23
(Prozess w3wp.exe, PID 13160) „Exchange-AuthZPlugin kann die Methode „GetApplicationPrivateData“ aufgrund der Anwendungsausnahme „Microsoft.Exchange.Diagnostics.SetupVersionInformationCorruptException: Die installierte Dateiversion kann nicht anhand des Registrierungsschlüssels ‚HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine‘ ermittelt werden.
for Microsoft.Exchange.Diagnostics.ExchangeSetupContext.get_PSHostPath()
for Microsoft.Exchange.Configuration.Authorization.InitialSessionStateBuilder.InitializeWellKnownSnapinsIfNeeded(ExchangeRunspaceConfigurationSettings settings, Boolean isPowerShellWebServiceSession)
for Microsoft.Exchange.Configuration.Authorization.InitialSessionStateBuilder.Build(List`1 allCmdlets, List`1 allScripts, ExchangeRunspaceConfiguration runspaceConfig)
for Microsoft.Exchange.Configuration.Authorization.ExchangeRunspaceConfiguration.CreateInitialSessionState()
for Microsoft.Exchange.Configuration.Authorization.ExchangeAuthorizationPlugin.GetInitialSessionStateCore(PSSenderInfo senderInfo)
for Microsoft.Exchange.Configuration.Authorization.ExchangeAuthorizationPlugin.c__DisplayClass4.b__3()
bei Microsoft.Exchange.Configuration.Authorization.AuthZLogHelper.HandleExceptionAndRetry[T](String methodName, Func`1 func, Boolean throwException, T defaultReturnValue)“ nicht beenden.“
The solution is to enter the corresponding registry keys by copying and pasting the following text into a .REG file:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine] "ApplicationBase"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0" "PSCompatibleVersion"="1.0, 2.0" "RuntimeVersion"="v2.0.50727" "ConsoleHostAssemblyName"="Microsoft.PowerShell.ConsoleHost, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=msil" "ConsoleHostModuleName"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Microsoft.PowerShell.ConsoleHost.dll" "PowerShellVersion"="2.0"