You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use of SemanticVersion in $PSVersionTable Breaks Remoting #1589
nsn : [10.123.170.144] Connecting to remote server 10.123.170.144 failed with the following error message : The WSMan provider host process did not return a proper response. A provider in the host process may have behaved improperly.
For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:6
Jason Shirk (@lzybkr) PSPrimitiveDirectionary.VerifyValue(object value) would throw ArgumentException for SemanticVersion value when the server side is running ServerRunspacePoolDriver.SendApplicationPrivateDataToClient(), so SemanticVersion should be added to "handshakeFriendlyTypes"
However, this won't solve the problem of "downlevel client remotes to new PowerShell Core", since the downlevel client doesn't know how to deserialize a SemanticVesion string.
Aren't all shipped versions of PowerShell downlevel clients since they don't include support for SemanticVersion? By that logix, since this change only exists in PowerShell Core, so Server 2016 and NanoServer are downlevel.
Yes and yes. PowerShell Core 6.0 needs to maintain compatibility with all supported downlevel versions of PS. That would mean PS 3.0+ (Windows 8+). Win7 will require a WMF to work, but not necessarily WMF 5.1 (WMF 3.0+)
Activity
lzybkr commentedon Aug 1, 2016
Maybe fixed with: https://github.com/lzybkr/PowerShell/commit/eba7fc9331e9adb695792d47f18dabb18d3ece14?
daxian-dbw commentedon Aug 1, 2016
Jason Shirk (@lzybkr) PSPrimitiveDirectionary.VerifyValue(object value) would throw ArgumentException for SemanticVersion value when the server side is running ServerRunspacePoolDriver.SendApplicationPrivateDataToClient(), so SemanticVersion should be added to "handshakeFriendlyTypes"
However, this won't solve the problem of "downlevel client remotes to new PowerShell Core", since the downlevel client doesn't know how to deserialize a SemanticVesion string.
mirichmo commentedon Aug 1, 2016
Aren't all shipped versions of PowerShell downlevel clients since they don't include support for SemanticVersion? By that logix, since this change only exists in PowerShell Core, so Server 2016 and NanoServer are downlevel.
daxian-dbw commentedon Aug 1, 2016
Mike Richmond (@mirichmo) Yes, exactly.
raghushantha commentedon Aug 2, 2016
Interesting. So, what is our version compat story?
Can PowerShell Core manage downlevel instances? (i.e PSVersion <=5.1)
And downlevel clients connecting to PowerShell Core instances?
mirichmo commentedon Aug 2, 2016
Yes and yes. PowerShell Core 6.0 needs to maintain compatibility with all supported downlevel versions of PS. That would mean PS 3.0+ (Windows 8+). Win7 will require a WMF to work, but not necessarily WMF 5.1 (WMF 3.0+)
lzybkr commentedon Aug 3, 2016
Fixed with 2b70837