rem Small little utility to remotely edit the neccessary registry
rem key in windows XP, to allow remote desktop connections.
rem After it completes that, it will automagically launch a RDP
rem connection to that computer. You will need pstools from
rem [url]http://www.sysinternals.com/files/Pstools.zip[/url]
rem
rem Type the command as such: term compname
rem
xcopy c:\terminal.reg \\%1\c$\ /c /y
psexec \\%1 -u administrator -p passwword -d regedt32.exe /s c:\terminal.reg
mstsc /v:%1 /f
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"fDenyTSConnections"=dword:00000001