Connecting to remote server 172.18.32.39 failed with the following error message : The WinRM client
14:53:09 cannot process the request. Default authentication may be used with an IP address under the following conditions: the
14:53:09 transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use
14:53:09 winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more
14:53:09 information on how to set TrustedHosts run the following command: winrm help config. For more information, see the
14:53:09 about_Remote_Troubleshooting Help topic.
当从我的构建节点对我的测试节点调用test-wsman
命令时,我得到了上面的winrm错误。当我从构建节点对测试节点手动运行test-wsman
命令时,它就工作了。我想除了这个奇怪的地方,还有人成功地解决了上面的错误吗?有什么方法可以从winrm获得更多的输出来解决这个问题吗?
将主机添加到TrustedHosts
你能在Powershell中在上运行管道的节点上运行以下命令吗
winrm quickconfig
winrm set winrm/config/client @{TrustedHosts="172.18.32.39”}
然后尝试再次运行管道。此外,当通过管道运行test-wsman cmdlet时,您能否验证您是否从运行该cmdlet的同一用户运行该cmdlet?