Turn on Remote Desktop Using Regedit

Enabling Remote Desktop remotely requires some sidestepping, but it is possible. As long as you have administrator access to the remote computer, you can enter its registry and turn on Remote Desktop from there.

Steps

Enabling Remote Desktop Remotely

  1. Understand the risks. As always, be aware that editing the registry risks causing major problems. Make a backup before you begin, and do not make any unnecessary changes.
    • Only follow this guide if you do not have physical access to the computer. If you do, use the standard user tools to Enable-Remote-Desktop without editing the registry.
  2. Open the Services Microsoft Management Console. Run services.msc from the Start menu search box.[1] You can also find the Services MMC through Control PanelAdministrative ToolsServices.
    • You only need the MMC to start Remote Registry. If the remote computer is running Windows XP, this is probably already running.[2] Skip down to "connect to the remote registry."
  3. Start the Remote Registry Service on the remote computer. In the Services MMC, right-click "Services (Local)" and select "Connect to another computer." Enter the name of your remote machine. Once connected, find the Remote Registry service in the MMC and start it, if it isn't already running.[3]
  4. Connect to the remote registry. Open regedit. Select FileConnect Network Registry.... Type the remote computer name under "Select Computer" and click Check Names.[4]
  5. Find the Terminal Server key. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server.
  6. Set fDenyTSConnections to 0. Look for the REG_WORD value named fDenyTSConnections in the Terminal Server details pane. Double click this to open the EDIT DWORD Value box. In this box, set the Value Data field to 0.[4]
  7. Test Remote Desktop. Some systems give you immediate access, and some require you to restart the remote computer first. Attempt to connect to Remote Desktop to check. (If you left the MMC open, you can quickly start Remote Desktop from there.)
  8. Reboot the remote computer if necessary. There are Remotely-Restart-a-Windows-Machine-Through-Command-Line to do this. The simplest is to open Command Prompt and enter shutdown /i. In the dialog box that opens, select "Restart" from the drop down menu, and enter the name of the remote computer.[5] Try accessing Remote Desktop again once the computer is done restarting.

Troubleshooting

  1. Confirm you have administrator access. You must have administrator privileges on the remote computer.
  2. Bypass the firewall. If you are trying to access the remote computer from a different network, the firewall may be blocking you. There are two routes around this:
    • If the firewall is blocking Remote Registry but not Remote Desktop, connect to a computer on the same network as the target computer, then use it to access the target computer.
    • If the firewall is blocking Remote Desktop, download PSExec from Sysinternals. Use it to gain remote access to the remote computer's command line and make a Remote Desktop exception for the firewall.[3][6] (Enter netsh advfirewall firewall add rule ? for instructions.[7])

Warnings

  • Do not edit the registry if you are not familiar with it. Editing mistakes can cause permanent irreversible damage.

Related Articles

Sources and Citations