Use the SHADOW command to monitor another terminal services user session

This is a simple but useful command to allow you to shadow another terminal services user when working in a remote desktop environment, this often works when the “remote control” option in Task Manager or Terminal Services Manager fails to connect to the session.

To determine the session ID of the user you wish to shadow you can either check using the task manager “users” tab (see below), paying attention to the “Session” column value:

Shadow Command - Check Users with Task Manager

Shadow Command - Check Users with Task Manager

Alternatively use the query user command at the command prompt to output the session list:

>Jason                rdp-tcp#0           2  Active          .  9/11/2011 11:17 AM
 Bob                  rdp-tcp#4           1  Active          .  9/11/2011 4:03 PM
 John                 rdp-tcp#6           3  Active         11  9/11/2011 8:44 AM

Once you are armed with the “session” name/ID you can connect to the user using the Shadow command:
For example to connect to the top session above I would use “shadow rdp-tcp#0” in the command line.

When finished Press CTRL+* to end the remotely controlled session (use the asterisk [*] from the numeric keypad only).

Jason Vigus

Search or List Installed MS Updates/Hotfixes KB Via Command Prompt

A quick and easy way to list the installed Updates / Hotfixes via the command line:
wmic qfe get hotfixid

To output the list of installed Hotfixes to a file try:
wmic qfe get hotfixid > c:\installed-hotfixes.txt

If you want to quickly check to see if a specific Hotfix is installed try this:
wmic qfe get hotfixid |find “968930”

This tool is available in Windows 2000, Windows XP, Windows Vista, Windows 7 & Windows Server 2003/2008.

Jason Vigus