Skip navigation

JSI Tip 8429. How do I enable Remote Desktop on Windows XP SP2 using the registry?

To enable Remote Desktop on a Windows XP SP2 computer, run the following batch file:

@echo off
setlocal
set key1="HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server"
set key2="HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FwV4Policy\CorporateProfile\GloballyOpenPorts"
set key3="HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FwV4Policy\OtherProfile\GloballyOpenPorts"
@echo REG ADD %key1% /v fDenyTSConnections /t REG_DWORD /f /d 0
REG ADD %key1% /v fDenyTSConnections /t REG_DWORD /f /d 0
@echo REG ADD %key2% /v 3389:TCP /t REG_SZ /f /d "3389:TCP:*:Enabled:Remote Desktop"
REG ADD %key2% /v 3389:TCP /t REG_SZ /f /d "3389:TCP:*:Enabled:Remote Desktop"
@echo REG ADD %key3% /v 3389:TCP /t REG_SZ /f /d "3389:TCP:*:Enabled:Remote Desktop"
REG ADD %key3% /v 3389:TCP /t REG_SZ /f /d "3389:TCP:*:Enabled:Remote Desktop"
endlocal
NOTE: See How can I enable two Remote Desktop connections to Windows XP SP2?



Hide comments

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.
Publish