11

I'm trying to execute the following statement on remoter server:

Invoke-Command -ComputerName server1 -ScriptBlock {Get-Process}

but I get an error message:

[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

What is the reason for this and how to fix it?

1
  • 3
    try typing Enable-PSRemoting in the remote computer. Commented Sep 7, 2011 at 10:19

1 Answer 1

16

There is 2 basical reason:

1) remote computer has not Powershell installed

2) PSremoting is not enabled on remote PC (to enable it read my comment in you answer)

Sign up to request clarification or add additional context in comments.

1 Comment

PS : in my case "Enable-PSRemoting" was not enough, I had to run after "Enable-WSManCredSSP -Role Server" to have that working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.