我想在多台远程机器上安装应用程序。
invoke-command -computer 10.13.14.10 -scriptblock {\\publicshare\software.msi /quiet}
我正在以我的用户权限登录的本地计算机上运行此命令,似乎我必须以更高权限的用户(域管理员)身份执行此命令。我怎么做?
错误 -[10.13.14.10] 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 creden
tials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more informatio
n on how to set TrustedHosts run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken