Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

At work we use sometimes a shared computer (Windows XP). Normally we access the software through Remote Desktop. The problem is that there is no way to tell if someone is already connected, if not running for office and asking everyone. Is there a way to know if someone is already connected with Remote Desktop, and what his user name without interrupting its connection?

share|improve this question

qwinsta is your friend.

Open a command-line. Type qwinsta /server:machine-name.

It will tell who's logged to the machine. It'll tell you if it's local (console) or remotely (rdp-tcp#xxx).

share|improve this answer

You can use the Terminal Services manager to connect to the Windows XP machine and review sessions. In this case, there should be two - a console session and the logged in user.

WMI should also expose this information for you, if you need this information available programmatically.

share|improve this answer
Since TSAdmin only comes preinstalled with Windows Server, command-line qwinsta can be used for the same purpose. However, both require Remote RPC to be enabled. – grawity Oct 5 '11 at 11:37

Do you share the computer with a common user login? If not, and everyone is in the habit of logging off and not just disconnecting, you would have windows warn you, that you were about to disconnect so and so and thus you will know both if someone is on the machine, and also who they are, and you can cancel your connecting if someone is using it.

This relies upon everyone having their own credentials, (which is a good idea anyway) and having the good habit of logging off. Can you get them to all see the advantage of that?

share|improve this answer

Your Answer


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.