Invoking remote commands?

What server side components (Win2003, Win2008, Win2012) and permissions must be setup for invoking a remote command via powershell?

Example

Invoke-Command -computername $MyRemoteServer -command {}

The reason I ask, is that I get this error when attempting remote invocation of powershell command:

[dntest1] Connecting to remote server dntest1 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.
    + CategoryInfo          : OpenError: (dntest1:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : CannotConnect,PSSessionStateBroken

DNTEST1 is a Win2008 box with IIS for which I am a local admin.

thanks


  • Edited by scott_m Thursday, April 17, 2014 10:58 PM
April 18th, 2014 1:47am

Apparently, you must first enable Powershell Remoting.
  • Marked as answer by scott_m Friday, April 18, 2014 1:23 AM
Free Windows Admin Tool Kit Click here and download it now
April 18th, 2014 4:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics