Workaround to enable PowerShell remote management failure via enable-psremoting

Source: Internet
Author: User

1 Powershell remote Management is a very common way to manage windows, but some of the ways we search online are through enable-psremoting, or WinRM quickconfig, However, sometimes it is not possible to realize remote after execution. The prompt message is "the connection to the remote server failed with an error message: The client could not connect to the target specified in the request"

650) this.width=650; "title=" Image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" Image "src=" http:// S3.51cto.com/wyfs02/m01/57/7f/wkiom1sbzk3snvq-aagsgs5fkd8720.jpg "height=" 201 "/>

2 Workaround:

We need to first determine if WinRM is listening:

Look at the ports and IPs that WinRM listens on

WinRM Enumerate Winrm/config/listener

found that the listening IP is empty

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/57/80/wkiom1sbzk2i4m74aadb7foyrf4360.jpg "height=" 166 "/>

So we need to re-establish the listener:

We re-establish the WinRM listener, you can specify the IP or use a wildcard character:

WinRM create Winrm/config/listener? Address=*+transport=http

650) this.width=650; "title=" Image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" Image "src=" http:// S3.51cto.com/wyfs02/m00/57/7d/wkiol1sbzvuyjv5saac0hx4krhw998.jpg "height=" "/>"

Take a look again:

650) this.width=650; "title=" Image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" Image "src=" http:// S3.51cto.com/wyfs02/m01/57/7d/wkiol1sbzvureypmaadkg31qa00766.jpg "height=" 137 "/>

Establishing the session again has been successful.

650) this.width=650; "Title=" Image (133) "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" Image (133 ) "src=" http://s3.51cto.com/wyfs02/M02/57/7D/wKioL1SbzVvhouS-AACiHZr4mmQ851.jpg "height="/>

This article is from the "operation and maintenance of life" blog, please make sure to keep this source http://lixiaosong.blog.51cto.com/705126/1595994

Workaround to enable PowerShell remote management failure via enable-psremoting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.