Enabling Remote Desktop Remotely

October 11th, 2007

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.

Please use the trackback link when linking to this post.

Related Posts:

Add to Technorati Favorites

2 Responses to “Enabling Remote Desktop Remotely”

  1. Sriram Says:

    hi will this works for Windows 2000 Prof version desktop?

  2. desktop window manager Says:

    Good read, appreciate it. Constantly searching out for strange and great information to read :)

Leave a Reply

.htaccess Apache article articles by Nilpo ASP ASP Free automation clipboard copy desktop Dev Shed docx Internet Explorer message box Microsoft PHP registry remove script scripting text tutorial tweak tweets Twitter UAC updates User Account Control VBS VBScript vista volume Windows Windows 7 Windows Guru Windows Script Windows Script Host Windows Scripting Windows Vista Windows XP Word WScript wscript.exe WSH XP