Enable Remote Desktop remotely by using remote registry

Hi SysAdmins

I bet the following scenario happened to you:

You install a server, configure it, install the required programs, set its IP address etc..

After half a day of work (since you didn’t create an image) you send the server to its remote location.

When the server arrives to its site and the local technician plugs it in,

you discover that you forgot a small but very important V: Allow remote connection to this computer.

remote settings

Fear not, the following procedure will Enable Remote Desktop remotely by using the registry:

  • The RemoteRegistry Service must be enabled in order for this to work.
  • Administrator privileges on the remote machine is required.
  • This works on Windows Server 2003 /Windows XP Professional or higher.
Now that you are connected to the remote machines’ registry, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. On the File menu, click Connect Network Registry.
  3. In the Select Computer dialog box, type the computer name and then click Check Names.remote registryremote registry2
  4. In the Enter Network Password dialog box, provide Domain Admins credentials for the domain of the server, and then click OK.
  5. After the computer name resolves, click OK.
  6. In the computer node that appears in the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server.
  7. In the console tree, click Terminal Server and then, in the details pane, double-click fDenyTSConnections.
  8. In the Edit DWORD Value box, in Value data, type 0, and then click OK.
  9. To implement the change, reboot the server remotely, as follows:Open a command prompt, type the following, and then press Enter:shutdown -m \\ ServerName -r -t  10

REG.exe command line to enable remote desktop

REG.exe ADD “HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0

If the right services are enabled you may be able to use this format to do the same thing on a remote machine

REG.exe ADD “\\MachineName\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0

 (source)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.