Unable to run powershell script remotely leading to test agent deployment failures in Azure

て烟熏妆下的殇ゞ 提交于 2020-01-16 05:19:12

问题


I am having a setup where I need to run automation script from a test agent. But the build step fails with the following message

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

But when I analysed the test agent machine, I am getting the messsage that WinRM service is already running

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>

Not sure why I am getting this message when I am able to see WinRM Service is up and running

I have also configured the firewall exception .

Please help me in pointing what I am missing. Thanks a lot


回答1:


WinRM/Remote Powershell service isn't configured correctly, try to reconfigure the service by following the steps here: How to Run PowerShell Commands on Remote Computers.



来源:https://stackoverflow.com/questions/37427715/unable-to-run-powershell-script-remotely-leading-to-test-agent-deployment-failur

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!