After you upgrade to Windows Management Framework 5.0 by installing update 3134758 on a server that is running Microsoft Lync Server 2013 or Microsoft Skype for Business Server 2015, Remote Windows PowerShell can't make a connection.
When this problem occurs, you may receive the following error message:
Additionally, the following entry may be logged in the event log:
When this problem occurs, you may receive the following error message:
PS C:\Windows\system32> $session = New-PSSession -ConnectionUri "https:///OcsPowershell " -Credential
$credential -SessionOption $sessionOption
New-PSSession : [<ServerName>] Connecting to remote server <ServerName> failed with the following error
message: The SSL connection cannot be established. Verify that the service on the remote host is properly configured
to listen for HTTPS requests. Consult the logs and documentation for the WS-Management service running on the
destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the
destination to analyze and configure the WinRM service: "winrm quickconfig -transport:https". For more information,
see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $session = New-PSSession -ConnectionUri "https:///OcsPowershe/OcsPowershe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108102,PSSessionOpenFailed
$credential -SessionOption $sessionOption
New-PSSession : [<ServerName>] Connecting to remote server <ServerName> failed with the following error
message: The SSL connection cannot be established. Verify that the service on the remote host is properly configured
to listen for HTTPS requests. Consult the logs and documentation for the WS-Management service running on the
destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the
destination to analyze and configure the WinRM service: "winrm quickconfig -transport:https". For more information,
see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $session = New-PSSession -ConnectionUri "https://
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108102,PSSessionOpenFailed
Additionally, the following entry may be logged in the event log: