我曾嘗試遠程計算機上使用PowerShell安裝.exe文件,但我有以下錯誤:我無法連接到遠程服務器
Connecting to remote server failed with the following error message : The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information on how to set TrustedHosts run the following command: winrm help config.
我運行下面的命令:
Invoke-Command -ComputerName y.y.y.y -ScriptBlock{"d:UltraVNC_1_2_10_X86_Setup"
我將執行策略更改爲RemoteSigned
,但這沒有幫助。
[Powershell的遠程與IP地址作爲目標(的可能的複製http://stackoverflow.com/questions/ 6587426 /的powershell-遠程-與 - ip-address-as-target) –