May 19, 2016 at 10:51 am #39294
I have created remote disconnected pssession on a large number of servers. When I attempt to reconnect them, I receive this error:
'Windows Powershell does not support connect operation on the protocolversion 2.3 negotiated by the client. Make sure the client is compatible with the build 6.2.9200.17065 and the protocol version 2.2 of Windows Powershell'
I created the remote sessions from a server running powershell 5.0.10586.117, and the remote servers are running Server 2012 with powershell 1.
Before I upgraded my remote admin machine to powershell 5, I could connect remote disconnected pssessions without errors.
Is there a sessionOption or some other workaround I can use?
May 19, 2016 at 11:11 am #39296
The remote servers are definitely not running PowerShell 1. PowerShell 1 didn't have Remoting, and doesn't run on Win2012.
They're likely running v2, but you'd need to check. The older Remoting protocol in v2 doesn't support disconnect/connect. Run $PSVersionTable on both machines and paste the results here – that'll help diagnose things.
Bottom line, though, if the two copies of PowerShell aren't connecting over a compatible version of the protocol, then there's nothing you can do to change this.
May 19, 2016 at 11:17 am #39297
Hi Don, thanks for the reply. Here's the output:
My admin machine, which I'm connecting from, has PSRemotingProtocolVersion = 2.3
May 19, 2016 at 11:31 am #39300
Seems odd. v3 supported disconnect/reconnect. However, it apparently isn't working between those two different versions. Not much you can do about it, unfortunately. It's possible it's a bug, actually.
May 19, 2016 at 4:01 pm #39311
Don, nothing's changed on the target server side, only on my admin workstation, where I installed WMF5.
If this is indeed a bug, how do I let MS know?
May 19, 2016 at 4:04 pm #39312
The UserVoice page for PowerShell.
You must be logged in to reply to this topic.