PowerShell Remote connection Specifies trustedhost

Source: Internet
Author: User

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

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.