RedditPP Mascot

RedditPP

r/sysadmin • … • u/frogadmin_prince

Server 2019/2022 Can't Connect to Exchange 2016 Powershell via New-PSSession

This issue has stumped the vendor and I have not been able to locate an answer via hours of google searching.

This has been interesting. Server 2016,2008 and Windows 10 you can issue the command *New-PSSession -ConfigurationName* [*Microsoft.Exchange*](https://Microsoft.Exchange) *-ConnectionUri* [*https://FQDN/powershell*](https://exch19.city.ketchikan.ak.us/powershell) *-Credential $cred -Authentication Basic -AllowRedirection* and it will connect instantly no issue. $Cred is a domain user that we use on the 2008 box currently to pull data for this vendor.

If issued from a 2019, or a 2022 Server I get the following error message:

*New-PSSession : \[FQDN of Exchange\] Connecting to remote server FQDN failed with the*

*following error message : For more information, see the about\_Remote\_Troubleshooting Help topic.*

Event Viewer WSMan reported an error with error code: -2144108477.

For troubleshooting I have tested the connection, set SSL to Ignore in ECP and Default on the Exchange Server. Verrified it isn't a firewall on the 2019 or 2022 servers. Typical head scratcher from MS due to no clear error message.

Anyone have any thoughts?

— 0