how to enable remote desktop connection remotely on LAN

This post is for the Local Area Network Administrators and for those who are having two three computers at home and have administration rights on all of them. You can use few very easy commands to enable remote desktop connection remotely or even by editing few entries in the registry. You don’t even need to go to those computers to enable remote desktop connection. Commands are given as under;

Go to run and enter the under given commands;

netsh firewall set service remoteadmin enable

netsh firewall set service remotedesktop enable

Have a look at the under given registry key settings;

  1. Run Regedit
  2. Select File –> Connect Network registry
  3. Enter the name of the remote computer and select Check Name
  4. At the bottom of the registry tree you will see 2 Hives appear Hkey_Local_Machine and
    Hkey_Users (under the remote computer’s name)
  5. Goto hklmsystemcurrentcontrolsetcontrolterminal serverFdenyTSConnections=1
  6. Change the FdenyTSConnections to 0
  7. Attempt to Re-Login

This worked okay I hope so, but I like to implement the most elegant solution possible. So I would open up the command line on my local machine, and use psexec to configure the firewall service on the remote machine via netsh.

psexec \remotecomputername netsh firewall set service remoteadmin enable

psexec \remotecomputername netsh firewall set service remotedesktop enable

If you liked this post share your valuable comments.

Leave a Comment

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