Saturday, August 02, 2008

Tonight I had a few orphaned sessions to a remote machine that were not being enumerated by Terminal Services Manager or a remote connection (from Computer Management).  I almost gave up and drove to the physical machine, but I found this trick online first.

Here's a handy way to view and manage sessions from the command prompt.

To List All Sessions

Start->Run->cmd

query session /server:xxx.xxx.xxx.xxx

To End a Session

Start->Run->cmd

reset session 1 /server:xxx.xxx.xxx.xxx

Note that "1" represents a session id.  You can see all available sessions from the previous "query" command.  Insert the correct number to terminate it.

Once you know these few commands, its actually quicker to manage remote sessions from the command prompt.

- Tim Medora

posted on Saturday, August 02, 2008 8:19:22 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [0]
Related posts:
Comments are closed.