We want to open a remote PSSession on our hybrid Exchange 2016 (OnPrem) via Powershell.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ourServer.FQDN/PowerShell/ -Authentication Kerberos
But we get the error
Connecting to remote server OurServer failed with the following error message :
The server certificate on the destination computer (ourServer.FQDN:443) has the following errors:
The SSL certificate contains a common name (CN) that does not match the hostname.
We use Self Signed Certificates for our Clients
But for our hybrid Configuration we use a bought certificate
Is it a binding Problem in our IIS config ??
We also tried this solution to suppress the CNCheck
$SessionOpt = New-PSSessionOption -SkipCACheck:$true -SkipCNCheck:$true -SkipRevocationCheck:$true
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://<target-server-address>/powershell/ -Credential $LiveCred -SessionOption $SessionOpt
How to connect to an Exchange server via PowerShell (codetwo.com)
And get this error
The WinRM client sent a request to an HTTP server and got a response saying the requested HTTP URL was not available.
This is usually returned by a HTTP server that does not support the WS-Management protocol
Best regards
Vito