Subscribe to Windows IT Pro
January 08, 2003 12:00 AM

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

Windows IT Pro
InstantDoc ID #77491
Rating: (0)

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}

{} 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


Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.