Remotely Enable Remote Desktop in Windows 7 Professional

I recently needed to login to a computer on a LAN that did not have Remote Desktop enabled. Here are the high-level steps that I took.

If you search online, you will typically find references to a registry setting to enable RDP.

Specifically:

HKLM Hive  -> System -> CurrentControlSet -> Control -> Terminal Server > fDenyTSConnections  should be changed to zero.

See: http://pctech.blog.ca/2012/04/07/enable-remote-desktop-connection-in-windows-7-using-regedit-remotely-13444092/

That’s not sufficient in most cases.

You also typically need to allow Remote Desktop through the firewall. I did this using Sysinternals psexec tool to get a command prompt to the remote machine.

i.e. psexec \\remote-computer cmd.exe

Then running a netsh rule to enable RDP:
i.e. netsh firewall set service type = remotedesktop mode = enable

 

Also, I needed to add the user to the local computer’s Remote Access user’s group (not the exact name).

A reboot was required.

See:

netsh firewall rule:  http://technet.microsoft.com/en-us/library/cc736451(v=ws.10).aspx

psexec: http://technet.microsoft.com/en-ca/sysinternals/bb897553.aspx

Tags: , , ,

2 Responses to “Remotely Enable Remote Desktop in Windows 7 Professional”

  1. monicus Says:

    I put this and other things into a batchfile, hope this is helpful
    http://pastebin.com/3V9mQYuG

  2. web hosting kerala Says:

    First of all I want to say terrific blog! I had a quick question in which I’d like to ask if you don’t mind.

    I was curious to know how you center yourself and clear your thoughts before writing.
    I’ve had a difficult time clearing my thoughts in getting
    my thoughts out there. I truly do enjoy writing but it
    just seems like the first 10 to 15 minutes tend to
    be lost simply just trying to figure out how to
    begin. Any ideas or hints? Thanks!

Leave a Reply