JSI Tip 6187. How do I remotely alter the default Windows XP Remote Desktop setting to allow connections?

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
if \{%1\}

\{\} goto syntax :loop if \{%1\}

\{\} 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 .... Computern\] goto loop :finish endlocal

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.