May, 8
2009

How to enable Remote Desktop through SSH or Telnet

If you have a telnet server already configured (or an SSH server as is my case) but you forgot to, or need to, enable remote desktop to remotely control that computer, you can do this via the terminal.
Just connect to your console session (SSH / Telnet) and run this command:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
 fDenyTSConnections /t REG_DWORD /d 0 /f

This will make Terminal Services on the remote computer allow for incoming connections. Then, for Windows 7, type in:

net start "Remote Desktop Services"

This will start the listener service on the computer. You should now be able to access the computer using the administrators account (granted, you must have admin access to the ssh or telnet terminal to do any of this).

4 Responses to “How to enable Remote Desktop through SSH or Telnet”

  1. backgrounds

    windows 7 is the greatest windows OS yet. your article was well written i look forward to reading more of your posts!

  2. talbot

    I can’t give you a sure-fire formula for success, but I can give you a formula for failure: try to please everybody all the time.

  3. DanD

    If telnet or SSH isn’t enabled, you can prepend \\ComputerName\ to the HKLM do run the command remotely.

    reg add “\\ComputerName\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f

    Then use sc.exe or services.msc to start the RDP service remotely.

  4. .intheMeanTime » Blog Archive » How to enable Remote Desktop …

    [...] See original here: .intheMeanTime » Blog Archive » How to enable Remote Desktop … [...]

Leave a Reply

*