Exchange Management Shell not opening in Exchange Server 2019 on Windows Server 2019

Copper Contributor

In a new installation of Exchange Server 2019 CU2 on Windows Server 2019 fully patched, with .NET Framework 4.7.2,  the Exchange Management Shell is not connecting to Exchange with this error :

"New-PSSession : [server.domain.com] Processing data from remote server server.domain.com failed with the following error message: [ClientAccessServer=SERVER,BackEndServer=server.domain.com,RequestId=29e42dd0-3fd1-4787-
a68c-20a70846c584,TimeStamp=dd/mm/yyyy hh:mm:ss] [FailureCategory=WSMan-Others] Unable to load the assembly "Microsoft.Exchange.Configuration.ObjectModel.dll" specified in the "InitializationParameters" section. For more information, see the about_Remote_Troubleshooting Help topic. 
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Micr ...
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed

 

After this error, EMS is able to connect to an old Exchange 2013 server in coexistence in the same domain.

 

Someone else experienced the same problem?  Could be a bug in Exchange 2019 CU2?

 

Thank you

 

7 Replies

@Ivan Salvade' 

I am experiencing the same problem with Exchange 2016 on Server 2016 on a child domain. My root domain is running Exchange 2016 and I had no issues when I migrated from 2010 to 2016. When I install a new Exchange 2016 (CU 13) server in the child domain I have run into this problem you are describing for 2019 editions respectively.

 

Did yo manage to find a solution/cause for your issue?

@Matt_B010 

 

No… reinstalled entire server to resolve :(

Hi @Matt_B010,

 

Can you try to run "Set-ExecutionPolicy Unrestricted" in PowerShell in Run As Administrator and after run Exchange Powershell in Run Ad Administrator as well ?

Tried that yesterday and it didn't work either.

@Ivan Salvade'  @Nuno Silva 

Solved.

Turns out there was a GPO in the child domain being applied at a higher precedence that had over written the Default Domain controllers policy under,

Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\ Manage auditing and security log was missing the "Exchange Servers" group.

 

Added the group, ran gpupdate and the Exchange Management Shell now connects.

Thanks for the quick replies.

I just want to add a "Me too" here. I had this error on a new Exchange 2019 server. 3 servers were deployed, but only 1 exhibited this error. Uninstall / reinstall of Exchange fixed the problem.