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.

link|improve this question

feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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