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
(process w3wp.exe, PID 13160) "Exchange-AuthZPlugin cannot use the method "GetApplicationPrivateData" due to the application exception "Microsoft.Exchange.Diagnostics.SetupVersionInformationCorruptException: The installed file version cannot be determined from the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine'.
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()
for Microsoft.Exchange.Configuration.Authorization.AuthZLogHelper.HandleExceptionAndRetry[T](String methodName, Func`1 func, Boolean throwException, T defaultReturnValue)"."
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"
Hallo,
kurze Info von mir. Dieses Problem gibt es tatsächlich auch beim EX2016 (in Verbindung mit WS2016). Ich habe schon sehr viele Exchange 2016 auf einem Windows Server 2016 installiert und bisher ging es gut. Jetzt bei einem Projekt hatte ich auch aufeinmal dieses „komische“ Problem.
Der Regeintrag hat alles bereinigt. Danke Franky.
Grüße, Hakan
Hi
Das gilt für Exchange 2016 genauso, jedenfalls auf einem Server 2016. Ich habe es testweise dreimal installiert, und hatte haufenweise Probleme (EAC ging nicht, Exchange Management Shell noch weniger) – bis ich diese Registry-Einträge ergänzt habe. Jetzt läuft es so wie es hätte von Anfang an laufen sollen. Die Qualitätskontrolle bei MS ist zum Vergessen. Vielen Dank für die Hilfe.
Grüß, Nihad
Gilt das auch für Exchange 2016?
Hi, das sollte mit Exchange 2016 nicht mehr auftreten.
Gruß, Frank
Doch, ich habe den Fehler und der Reg-Key fehlt.
Ex 2013 war nie bei uns im Netz, aber wir migrieren gerade von 2010 nach 2016. Irgend etwas das dagegen spricht das wie
bei 2013 zu lösen?
Hi,
du kannst es ja mal testen. Wenn es nicht klappt entferne den Schlüssel wieder.
Gruß, Frank