Welcome to TechNet Blogs Sign in | Join | Help
People squatting on your TS sessions?

Something that administrators deal with quite a bit is trying to connect to a machine using remote desktop (mstsc) and getting our favorite message:

 

Boy this messagewill get you angry, damn squatters.  pre-Vista/LH you could always give the /console switch a go and see if the console session is available:

mstsc /console /v:<server>

Even if the console session is being used you can still kick the person off if you feel like it.

The other option is to query who is connected and (if you have the rights and don't care whats going on in their session) boot off whomever you don't want connected to free yourself a slot:

query session /SERVER:<server>

reset session /Server:<server> <id>

And in real practice, goodbye squatter2.

The query.exe and reset.exe commands live in System32 so they should come with the OS.  Links to the syntax of those commands below.

query session

reset session

Published Tuesday, May 15, 2007 12:29 AM by Brad Rutkowski

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: People squatting on your TS sessions? @ Tuesday, April 14, 2009 11:19 AM

On my Vista Home Premium machine this command does not exist.  How can I get it working there?  I tried copying query.exe from an XP machine, and that did not work.

Daniel Williams

# re: People squatting on your TS sessions? @ Tuesday, April 14, 2009 3:33 PM

Hi Daniel, I don't think Vista Home Premium has RDP capabilities.

Brad Rutkowski

Leave a Comment

(required) 
required 
(required) 
Page view tracker