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