PowerShell 4.0.
来自get-help about_Remote_Requirements
要在WindowsWindows3.0上运行远程会话,本地和远程计算机必须具有以下内容: - Windows PowerShell 3.0或更高版本-MicrosoftWindowsFramework4.0或更高版本-WindowsRemoteManagement3.0
如何获得(WinRM)版本?我在$PSVersionTable变量的输出中没有看到这个信息:

UPD
winrm id结果:

发布于 2016-02-18 11:34:11
如果WinRM正在运行:
‘`winrm id’检查堆栈版本
如果WinRM未运行,请检查%Windir%\System32\wsmsvc.dll的版本号
(Get-Item C:\Windows\System32\wsmsvc.dll).VersionInfo.FileVersionOr:$PSVersionTable.BuildVersion.ToString() (结果相同)
如果它可以帮助您,这将工作到版本2。
Function Get-WinRMVersion
{
$WinRM = ((Get-Item C:\Windows\System32\wsmsvc.dll).VersionInfo.FileVersion -Split '\s')[0]
Switch -Wildcard ($WinRM)
{
"5.2.3790.2075" {0.5}
"6.0.6000.16386" {1.0}
"5.1.2600.3191" {1.1}
"5.2.3790.2990" {1.1}
"5.2.3790.4131" {1.1}
"6.0.6001.18000" {2.0}
"6.1.7600.16385" {2.0}
"6.2.*" {return "Greater then v2"}
}
}https://stackoverflow.com/questions/35480126
复制相似问题