Friday, June 23, 2006

WMIC to enable Remote Desktop

Using the Windows Management Instrumentation Command line can be useful to enable remote desktop on servers that have already been deployed without the feature enabled.

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

WMIC is worth investigating further, I comes with a large list of pre-configured WMI commands with simple aliases. Open a command Windows on any XP or Windows 2003 server and type WMIC then type /? to explore some of the capabilities.

The /node is the switch that enables you to work remotely e.g:


Will display the hotfix levels between two machines for comparison