我正在进行设置,我需要从测试代理运行自动化脚本。但是构建步骤失败了 以下消息
connecting to remote server DevBox02 failed with the following error message
: The client cannot connect to the destination specified in the request. Verify that the
service on the destination is running and is accepting requests. Consult the logs and
documentation for the WS-Management service running on the destination, most commonly IIS or
WinRM. If the destination is the WinRM service, run the following command on the
destination to analyze and configure the WinRM service: "winrm quickconfig". For more
information, see the about_Remote_Troubleshooting Help topic.'. For troubleshooting
但是当我分析测试代理机器时,我得到了WinRM服务已经运行的消息
PS C:\Windows\system32> winrm quickconfig
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.
PS C:\Windows\system32>
当我能够看到WinRM服务已启动并正在运行时,我不知道为什么会收到此消息
我还配置了防火墙例外。
请帮助我指出我所缺少的东西。非常感谢
答案 0 :(得分:1)
未正确配置WinRM / Remote Powershell服务,请尝试按照此处的步骤重新配置服务:How to Run PowerShell Commands on Remote Computers。