The default remote connection for PowerShell is implemented through WinRM. In the domain is very easy, generally specify the domain name can be directly connected, if you want to connect to the workgroup machine, or I would like to use IP address to connect remote access, then he will generally error:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/21/wKioL1c5UIryAPXBAACez6w9m6M415.png "style=" float: none; "title=" 1.PNG "alt=" Wkiol1c5uiryapxbaacez6w9m6m415.png "/>
The method of bypassing is simple, add the IP address to the specified trustedhost.
Like what
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/24/wKiom1c5T6aw1aWOAAA5xzIJrO4602.png "style=" float: none; "title=" 2.PNG "alt=" Wkiom1c5t6aw1awoaaa5xzijro4602.png "/>
Try again, enter the IP address and the specified account
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/21/wKioL1c5UI-CL4sQAACfnxqQvxQ874.png "style=" float: none; "title=" 3.PNG "alt=" Wkiol1c5ui-cl4sqaacfnxqqvxq874.png "/>
Log in successfully
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/21/wKioL1c5UJLTWKMnAAArmRdvkm8209.png "style=" float: none; "title=" 4.PNG "alt=" Wkiol1c5ujltwkmnaaarmrdvkm8209.png "/>
Similar invoke-command can do that, too.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/24/wKiom1c5T67i-MQSAABqe01eMts927.png "style=" float: none; "title=" 5.PNG "alt=" Wkiom1c5t67i-mqsaabqe01emts927.png "/>
This article is from the "Mapo Tofu" blog, please be sure to keep this source http://beanxyz.blog.51cto.com/5570417/1773867
PowerShell Remote connection Specifies trustedhost