-----provide ad\exchange\lync\sharepoint\crm\sc\o365 and other Microsoft product implementation and outsourcing, qq:185426445. Phone 18666943750
Step 1, Windows Server 2012 above the operating system, by default is enabled for remote management, but in the Windows R2 operating system
, after running the Invoke-command error, for example, on a computer that needs to be connected remotely, after running Enable-psremoting–force, i.e.
Remote management is turned on, and Invoke-command can be run successfully
650) this.width=650; "Width=" 923 "height=" 469 "title=" Capture "style=" border:0px;width:688px;height:314px;padding-top:0 Px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Captures "src=" Http://s3.51cto.com/wyfs02/M00/82/EE /wkiom1dlz8wtys1kaaisxn-ztuw303.jpg "border=" 0 "/>
Step 2, in the AD domain environment, if you need PowerShell remote management 08r2 or Win7 operating system, the above method is obviously inappropriate,
The efficiency is also very low, we can use the domain policy to implement, we open the default domain policies,
Manage Templates---Windows components----Windows Remote Management (WinRM)---the WinRM service to change allow auto-configure listeners to Enabled
650) this.width=650; "Width=" 1030 "height=" 476 "title=" Capture 2 "style=" Border:0px;width:706px;height:391px;padding-top : 0px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Capture 2 "src=" http://s3.51cto.com/wyfs02/M01/82 /ee/wkiom1dlz8iarjzraagiwn4ngpq740.jpg "border=" 0 "/>
Step 3, State is modified to Enabled, IPV4 filter is *,ipv6 filter is *. "Note: You may not be able to connect to this computer"
650) this.width=650; "width=" 1125 "height=" 519 "title=" Capture 3 "style=" Border:0px;width:712px;height:450px;padding-top : 0px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Capture 3 "src=" http://s3.51cto.com/wyfs02/M02/82 /ee/wkiom1dlz8ytb3j7aahgsxegppa012.jpg "border=" 0 "/>
Step 4, select Computer Configuration/Policies/windows Settings/security Settings/system services, set Windows Remote services to start automatically:
650) this.width=650; "Width=" 1069 "height=" 494 "title=" Capture 5 "style=" Border:0px;width:708px;height:419px;padding-top : 0px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Capture 5 "src=" http://s3.51cto.com/wyfs02/M02/82 /ee/wkiom1dlz8-zg49faagedcaks2w878.jpg "border=" 0 "/>
Step 5, when enabled as
650) this.width=650; "Width=" 1115 "height=" 515 "title=" Capture 7 "style=" Border:0px;width:707px;height:384px;padding-top : 0px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Capture 7 "src=" http://s3.51cto.com/wyfs02/M01/82 /ed/wkiol1dlz9ojqc1jaair84f0nne334.jpg "border=" 0 "/>
Step 6, select Computer Configuration/Policies/windows Settings/security Settings/Windows Firewall with Advanced Security, new firewall rules, predefined
: Windows Remote Management
650) this.width=650; "Width=" 1064 "height=" 491 "title=" Capture 8 "style=" Border:0px;width:717px;height:357px;padding-top : 0px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Capture 8 "src=" http://s3.51cto.com/wyfs02/M01/82 /ee/wkiom1dlz9xzfm-jaaezcnazv0s385.jpg "border=" 0 "/>
Step 7, set back in
650) this.width=650; "Width=" 1105 "height=" 510 "title=" Capture 9 "style=" Border:0px;width:714px;height:390px;padding-top : 0px;padding-right:0px;padding-left:0px;background-image:none; "alt=" Capture 9 "src=" http://s3.51cto.com/wyfs02/M02/82 /ee/wkiom1dlz9fqkw5haaero4-klqu093.jpg "border=" 0 "/>
Step 8, run Invoke-command, found no error, has been able to remotely manage 08r2 and Win7 client, such as
650) this.width=650; "height=" 613 "title=" capture "style=" border:0px;padding-top:0px;padding-right:0px;padding-left:0 Px;background-image:none, "alt=" captures "src=" http://s3.51cto.com/wyfs02/M00/82/EE/ Wkiom1dlz92qoqhsaal0edbbk04158.jpg "border=" 0 "/>
This article is from the "Zhou Ping Microsoft Technology Exchange Platform" blog, please be sure to keep this source http://yuntcloud.blog.51cto.com/1173839/1790701
PowerShell Management Series (32) PowerShell operation Open Terminal PowerShell remote management