Powershell PS远程处理协议版本不匹配

Powershell PS远程处理协议版本不匹配,powershell,Powershell,我在Win7嵌入式SP1 32位工作站上有一个断开连接的会话。我正在尝试连接到该会话。当我尝试连接时,会出现一个错误,提示PSRemotingProtocolVersion不匹配。我可以看到我的Windows 8.1工作站的版本为2.3,而Win7工作站的版本为2.2。如何更正此问题,以便连接到断开连接的会话 以下是我的会议摘录 PS C:\> Get-PSSession ef-pos-01.faculty.example.org Id Name Computer

我在Win7嵌入式SP1 32位工作站上有一个断开连接的会话。我正在尝试连接到该会话。当我尝试连接时,会出现一个错误,提示PSRemotingProtocolVersion不匹配。我可以看到我的Windows 8.1工作站的版本为2.3,而Win7工作站的版本为2.2。如何更正此问题,以便连接到断开连接的会话

以下是我的会议摘录

PS C:\> Get-PSSession ef-pos-01.faculty.example.org

 Id Name            ComputerName    State         ConfigurationName     Availability
 -- ----            ------------    -----         -----------------     ------------
  1 Session3        ef-pos-01.fa... Disconnected  Microsoft.PowerShell          None


PS C:\> Get-Pssession ef-pos-01.faculty.example.org | Connect-PSSession
Connect-PSSession : The connect operation failed for session Session3 with the following error message: Connecting to remote server
ef-pos-01.faculty.example.org failed with the following error message : The server that is running Windows PowerShell does not support connect operations on
the protocolversion 2.3  that is negotiated by the client computer. Make sure the client computer is compatible with the build 6.3.9600.16406 and the protocol
version 2.2 of Windows PowerShell. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:46
+ Get-Pssession ef-pos-01.faculty.example.org | Connect-PSSession
+                                              ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Connect-PSSession], RuntimeException
    + FullyQualifiedErrorId : -2141974621,PSSessionConnectFailed,Microsoft.PowerShell.Commands.ConnectPSSessionCommand

PS C:\> Enter-PSSession ef-pos-01.faculty.example.org
[ef-pos-01.faculty.example.org]: PS C:\Users\mike.mackenna\Documents> $PSVersiontable

Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.17929
BuildVersion                   6.3.9600.16406
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2


[ef-pos-01.faculty.example.org]: PS C:\Users\mike.mackenna\Documents> exit
PS C:\> $PSversionTable

Name                           Value
----                           -----
PSVersion                      5.0.10105.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.34209
BuildVersion                   10.0.10105.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3

我在将Windows 10(PS 5)连接到服务器2012(PS 3)时遇到此问题。我可以创建会话并执行任何操作,但无法重新连接到它,即使是从服务器。同样,我可以在服务器上创建并重新连接(到本地主机),但尝试从我的计算机连接失败并中断了会话

我通过在服务器上安装WMF5解决了这个问题,将其升级到PowerShell 5,现在它运行顺利