Let the client automatically enable? Group Policy helps you

  

The Remote Desktop Connection feature is a set of components that are highly supported and appreciated by users. We can complete the remote desktop connection function under XP and 2003 by simple check. Open, many friends in the enterprise management, will choose remote desktop to manage the client computer, in general, often need the client to enable this feature. Then, is there a better way to let the client automatically Enable it? The answer is yes, Xiaobian tells you that it can be done in the form of Group Policy.

Specific operation: (domain environment)

1. Create an OU on the DC and put the corresponding client computer into this OU. The exam is big - the country's largest education website (www.Examda.com)

2. Create a group policy for this OU. In the computer configuration of this group policy, add a script to the startup script, as follows: :(named RDP.vbs)

Const ENABLE_CONNECTIONS = 1

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\\\" & strComputer & "\ oot\\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_TerminalServiceSetting")

For Each objItem in colItems

errResult = objItem.SetAllowTSConnections(ENABLE_CONNECTIONS)

Next

set oShell = WScript.CreateObject("WScript.shell")

oShell.run "cmd.exe /c netsh firewall add portopening tcp 3389 RemoteDestop",0,true

set oShell=nothing

3. The client computer is re-enabled and will take effect.

Note: This script verifies that all clients are 2003 and can automatically "remote desktop" functionality through the firewall. Easy to manage the server!

After reading the above tutorial, many people can't help but ask: How is it implemented through group policy? Is the group policy function so powerful? Yes, the group policy is not only The text can automatically enable the client remote desktop function, there are many well-known features, if you want to know more, then continue to pay attention to this website.

Copyright © Windows knowledge All Rights Reserved