jra*_*ara 9 windows powershell powershell-2.0
我正在尝试在远程服务器上执行以下语句:
Invoke-Command -ComputerName server1 -ScriptBlock {Get-Process}
Run Code Online (Sandbox Code Playgroud)
但是我收到一条错误消息:
[server1] Connecting to remote server failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the serv
ice 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.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken
Run Code Online (Sandbox Code Playgroud)
这是什么原因以及如何解决?
归档时间: |
|
查看次数: |
15392 次 |
最近记录: |