{"id":1578,"date":"2017-08-25T16:31:00","date_gmt":"2017-08-25T23:31:00","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1578"},"modified":"2017-08-25T16:31:00","modified_gmt":"2017-08-25T23:31:00","slug":"enable-windows-server-to-utilize-invoke-command-remotely","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1578","title":{"rendered":"Enable Windows Server To Utilize Invoke-Command Remotely"},"content":{"rendered":"<p>When I attempted to the Powershell option Invoke-Command against an old server, I was getting the following:<\/p>\n<blockquote><p>Connecting to remote server <em>servername<\/em> 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.<br \/>\nConsult 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<br \/>\nthe WinRM service: &#8220;winrm quickconfig&#8221;. For more information, see the about_Remote_Troubleshooting Help topic.<\/p><\/blockquote>\n<p>Fortunately, it told me what to do resolve the issue.  Nice:<\/p>\n<blockquote><p>C:\\>winrm quickconfig<br \/>\nWinRM already is set up to receive requests on this machine.<br \/>\nWinRM is not set up to allow remote access to this machine for management.<br \/>\nThe following changes must be made:<\/p>\n<p>Create a WinRM listener on HTTP:\/\/* to accept WS-Man requests to any IP on this<br \/>\nmachine.<\/p>\n<p>Make these changes [y\/n]? y<\/p>\n<p>WinRM has been updated for remote management.<\/p>\n<p>Created a WinRM listener on HTTP:\/\/* to accept WS-Man requests to any IP on this<br \/>\n machine.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>When I attempted to the Powershell option Invoke-Command against an old server, I was getting the following: Connecting to remote server servername 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 [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[451,450,452],"class_list":["post-1578","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-invoke-command","tag-powewrshell","tag-winrm"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1578"}],"version-history":[{"count":2,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1578\/revisions"}],"predecessor-version":[{"id":1580,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1578\/revisions\/1580"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}