Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to query a distant host as to whether someone is currently logged in through Remote Desktop? Or that there is a currently active connection?

Asking because bumping users on a workstation has become an issue, and I'd like to check without bothering them.

share|improve this question
up vote 2 down vote accepted

You can use the query command if you are within the local network. For example:

Query session /server:*yourservernameorIP*

you can use both friendly names and IPs in the "/server:" section.

For more info on Query commands see here.

share|improve this answer
    
Awesome. At least it would be if I didn't get an "Error 1722 getting sessionnames" and "Error [1722]:The RPC server is unavailable". While I am connected from the same machine! Almost tempted to start a new question on that. – MPelletier Jul 5 '11 at 15:27
    
Bad phrasing. Your answer is awesome, my situation is not. – MPelletier Jul 5 '11 at 15:28
    
When connecting to a workstation, you may need to allow remote RPC access. – grawity Jul 5 '11 at 15:32
1  
Also, once you get query working, you should take a look at "Terminal Server Administration Tool" (downloadable as part of Windows 2003 Admin Tools). – grawity Jul 5 '11 at 15:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .