I. Experimental environment
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://img1.51cto.com/attachment/201409/1/907015_1409562964rvPc.png" height= "108"/ >
Two. Operation procedure
(1) Enter "Enable-psrometing" on the server side, enable remote connection; (refer to: http://281816327.blog.51cto.com/907015/1397239)
(2) On the client side, enter Set-item wsman:\localhost\client\trustehosts–value "192.168.11.53" to set the server as the trusted host for the client.
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://img1.51cto.com/attachment/201409/1/907015_1409562965c8vv.png" height= "All"/>
To avoid the mistakes;
(
the error content is enter-pssession: Connection to remote server 192.168.11.53 failed with the following error message: The WinRM client could not process the request.
Authentication. For more information about how to set up Trustedhosts, run the following command: WinRM help config. For more information, see Location Line: 1 character: 1
+ Enter-pssession-computername 192.168.11.53-credential Contoso.test\administrat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ categoryinfo:invalidargument: (192.168.11.53:string) [Enter-pssession],psremotingtran + FULLYQUALIFIEDERR Orid:createremoterunspacefailed
)
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://img1.51cto.com/attachment/201409/1/907015_1409562965zCAv.png" height= "+"/>
(3) Enter "Enter-pssession–computername 192.168.11.53–credentrial contoso.test\administrator", enter the password and log in to the server remotely ; (Refer to: http://281816327.blog.51cto.com/907015/1397239 for specific operation)
Note:
(1) The trusted host can be set to a network segment, such as 192.168.11.*
(2) or a domain name, such as Iis01.contoso.test
This article is from the "Margin with Wish" blog, please be sure to keep this source http://281816327.blog.51cto.com/907015/1547537
PowerShell Remote Management Windows Server (3): Workgroup environment