2015-08-24 80 views
2

Win7 Embedded SP1 32位站點上有一個斷開連接的會話。我正在嘗試連接到該會話。當我嘗試連接時,出現一個表明PSRemotingProtocolVersion不匹配的錯誤。我可以看到我的Windows 8.1站點版本爲2.3,Win7站點爲2.2。我怎樣才能糾正這個問題,所以我可以連接到斷開連接的會話?從我的會話PS Remoting協議版本不匹配

下面是摘錄...

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 

回答

1

我有這個問題的Windows連接10(PS 5)服務器2012(PS 3)。我可以創建會話並做任何事情,但無法重新連接,即使從服務器。同樣,我可以在服務器上創建並重新連接(到本地主機),但嘗試從我的計算機連接失敗並中斷會話。

我解決了這個問題,通過在服務器上安裝WMF5以將其升級到PowerShell 5,現在可以順利運行。