在PowerShell Linux上缺lessWSMan提供程序(要使用远程处理)
我试图从Linux远程PowerShell到Azure上的Windows Nano服务器。 在说明中,我将远程服务器的IP添加到本地计算机的可信主机中: PS > Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value "1.2.3.4" Set-Item : Cannot find drive. A drive with the name 'WSMan' does not exist. At line:1 char:1 + Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value "1.2.3 … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (WSMan:String) [Set-Item], DriveNotFoundException + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SetItemCommand 如果我忽略此消息并尝试连接,则出现错误: PS > Enter-PSSession -ComputerName "1.2.3.4" -Credential joe […]