|
|
| Enable Remote Desktop using Script |
| Written by Terry Watts | |
| Friday, 22 October 2004 | |
|
Enable the Remote Desktop feature on Windows XP using simple scripting or remote registry calls. This information will get you started.
What you need to do is change these registry keys either using Registry Editor (regedit.exe) or using Windows Scripting Host or other program that allows editing of the Windows Registry.
As with all Windows Registry Editing - take care as you may end up breaking your computer. Now you will need to add users the to local Remote Support User group. This can be done by using the Computer Management Console, Batch scripting, or if you really like, Windows Scripting host. This command will add a Domain user to the local security group. Remember that you will need to be a local administrator of the machine so that you can add users to local groups.
It is easy to adapt this command so that local users can be used instead. Just remove the %userdomain%\ bit from the command. If you want to use Windows Scripting, then you can use the following file, just save the file with a .VBS or .WSH extention. VBS can be ran as a computer startup script in Active Directory Group policy.
Use this information at your own risk. For full details about using Scripting, visit http://www.microsoft.com/scripting |
|
|