在跳过networkprofile检查时出错

我已经通过运行$PSVersionTable cmdlet确保我在Windows 7上运行PS 2.0。

当我运行Enable-PSRemoting -SkipNetworkProfileCheck我得到以下错误: –

Enable-PSRemoting:找不到与参数名称“SkipNetworkProfileCheck”匹配的参数。

键入Get-Help Enable-PSRemoting

你会看到在PS2中没有这样的参数。

SkipNetworkProfileCheck参数包含在Powershell 3中。您需要安装PS3。