Remote PowerShell can't connect after an upgrade to Windows Management Framework 5.0


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:

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
+ FullyQualifiedErrorId : -2144108102,PSSessionOpenFailed

Additionally, the following entry may be logged in the event log:


This problem occurs because Lync Server 2013 and Skype for Business 2015 Management Shells are not currently compatible with Windows Management Framework 5.0.


To resolve this problem, you must uninstall update 3134758 from the affected computers, and then restart the system. In this situation, the affected computers includes both the Admin host on which Windows PowerShell is run and the target Lync or Skype for Business servers.

More Information

For more information about the products that are compatible and incompatible with Windows Management Framework 5.0, see Product Compatibility Status.


Microsoft is researching this problem and will post more information in this article when the information becomes available. 


For more information about Windows Management Framework 5.0, including expanded system requirements and a product download page, see the following Windows article:

Also, see the following Microsoft Knowledge Base articles:

3134758 Windows Management Framework 5.0 RTM on Windows 8.1 and Windows Server 2012 R2

3134759 Windows Management Framework 5.0 RTM on Windows Server 2012

3134760 Windows Management Framework 5.0 RTM on Windows 7 SP1 and Windows Server 2008 R2 SP1

ID článku: 3169706 - Poslední kontrola: 7. 6. 2016 - Revize: 1

Váš názor