Let the client automatically enable it? Group strategy to help you busy

  
The remote desktop connection function is a set of components that are highly supported and favored by users. We can complete the remote desktop connection function under XP and 2003 by simple check. Many friends choose when managing in the enterprise. Remote desktop to manage client computers, in general, often require the client to enable this feature. So, is there a better way to enable the client to automatically enable it? The answer is yes, Xiaobian tells you that it is actually This can be done in the form of a 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 in the startup script, the content is as follows: For 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.Client computer restart , it 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 will not be able to ask questions: How is it implemented through group policy? Is the function of Group Policy so powerful? Yes, the group policy can be in addition to the above. Automatically enable the client remote desktop feature, there are many well-known features, if you want to know more, then continue to pay attention to this site.

Copyright © Windows knowledge All Rights Reserved