The default setting of a newly installed Windows XP Professional computer does NOT allow an incoming Remote Desktop connection.

Using Reg.exe from the Windows 2000 Support Tools, or Reg.exe that is built into Windows XP and later, I have scripted RemoteDesktop.bat to allow Windows XP Professional computers to accept incoming Remote Desktop connections.

The syntax for using RemoteDesktop.bat is:

RemoteDesktop ComputerName1 \[ComputerName2 .... ComputerNamen\]

RemoteDesktop.bat contains:

@echo off
setlocal
if \{%1\}<h1><a name="_goto_syntax_loop_if_1_">\{\} goto syntax
:loop
if \{%1\}</a></h1>\{\} goto finish
set remote="\\%1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server"
shift
reg.exe ADD %remote% /v fDenyTSConnections /t REG_DWORD /d 0 /f>nul 2>&1
if NOT %ERRORLEVEL% EQU 0 @echo %remote% NOT found.
goto loop
:syntax
@echo Syntax: RemoteDesktop Computer1 \[Computer2 .... Computer<i>n</i>\]
goto loop
:finish
endlocal