Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.