Enabling Remote Desktop Remotely

Network administrators are becoming more accustomed to performing common tasks remotely. Windows itself provides a mechanism for this with its Remote Desktop feature. Being able to administer machines remotely saves travel time while providing a much appreciated convenience. But what happens when the machine you want to connect remotely to doesn’t have remote services enabled?

By now you’re probably yourself if there is a way to enable Remote Desktop on a remote machine. To answer your question, yes. Yes, there is. Here’s how.

First, you need to enable Remote Desktop. This can be done using WMI via the command line. Of course, you’ll need administrator credentials on the remote machine.

wmic /node:server_name rdtoggle WHERE server_name="servername" CALL SetAllowTSConnections 1

Next, you need to make sure that Remote Desktop is being allowed through the Windows Firewall. You can return to the command line once more for this.

netsh firewall service type=remoteadmin mode=enable scope=all

The above command needs to be run from the machine you wish to connect to. I find it easiest to add this to my network logon script. This ensures that every machine is always set to allow my connections.

Like the read? Share it!

3 Comments

  • hi will this works for Windows 2000 Prof version desktop?

  • Good read, appreciate it. Constantly searching out for strange and great information to read 🙂

  • Thanks for sharing a nice article

Leave a Reply

Contact

Wanna say hello?
Drop us a line!

You'll find us here

1 Microsoft Way,
Redmond,
WA 98052, United States