Windows Tip: Enabling remote desktop using WMIC

By Mitch Tulloch, ITworld.com |  Operating Systems Add a new comment

In several of these newsletters recently, I've shared some tips on using Windows
Management Instrumentation Command-line (WMIC) for administering various aspects
of Windows systems. And some of these tips have come from helpful readers - keep
them coming
! In the meantime, here's another tip that was passed on to me and
which may be of use to you.


Have you ever been in a situation where you need to use Remote Desktop Connection
to connect to a remote machine but unfortunately the Remote Desktop feature
hasn't been enabled on the remote machine? Well, you can enable Remote Desktop
remotely using-you guessed it-WMIC. Here's how:



wmic /node:"computername" /user: "domainname\username" /password:"password"
rdtoggle where servername="computername" call SetAllowTSConnections
1


Doing this requires that the Remote Registry service be running on the remote
machine, which it is by default for Windows XP and Windows Server 2003. If you've
disabled this service for security reasons however, then you're out of luck.



By the way, if you haven't read Gathering WMI Data without Writing a Single Line of Code by John Kelbley then take a look, it's a great way to start becoming familiar with the power of WMIC.

 

ITworld LIVE

Operating SystemsWhite Papers & Webcasts

White Paper

A Comparison of PowerVM and VMware vSphere (4.1 & 5.0) Virtualization Performance

This technical white paper presents benchmark results showing greater VM consolidation ratios than demonstrated in previous benchmarks and demonstrating the extent of the performance lead that PowerVM virtualization technologies deliver over x86-based add-on virtualization products.

White Paper

Consolidating Lotus Domino x86 Workloads on IBM Power Systems

Read the white paper to learn how moving up to Lotus Domino 8.5 and consolidating with IBM Power Servers can help you boost performance results and ROI.

White Paper

Task, workflow & issue management for teams. Try free!

Need a flexible system for managing team tasks, issue tracking, and automating and managing workflow processes? Comindware® Tracker helps you do it all.

Webcast On Demand

Best Practices in Monitoring VMware

The benefits of virtualization are unassailable: increased agility, scale, and cost savings to name a few. However, so too are the monitoring challenges posed by these environments-including complexities, lack of visibility and control, and inefficiency.

Sponsor: Nimsoft

White Paper

How Nimsoft Service Desk Speeds Deployment and Time to Value

For years, many support teams have been hamstrung by their traditional service desk platforms, which require complex, time-consuming coding for virtually every aspect of customization. This complexity makes it costly and difficult for support organizations to adapt-and places an increasingly substantial burden on the agility and efficiency of the business as a whole.

See more White Papers | Webcasts

Ask a question

Ask a Question