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

From my Windows 7 PC, I want to check to see who is “actively” logged on to another Windows 7 PC on my network, not who connected last. How can this be done?

Throughout the day several people will remotely logon to a shared computer, generally logging off when they are through. Note, these users have Admin rights on both, their PC and the one they remote into. If I logon while someone else is actively logged on, I’m given the option to continue on and make myself the “active” user, thus placing the former active account into a disconnected state. It would be nice to have the ability to see who is actively logged on before making this choice.

I have searched the web and found various solutions that let you know who made the last connection, which does not translate into them being the last, or currently "active" user.

On a side note, it seems weird in Windows 7 that the current, active user's ID is displayed 'after' I click 'Yes' to login over them. When we were using Windows XP, one could see the ID of the current active user 'before' deciding to continue logging on.

Any help is appreciated.

share|improve this question
up vote 6 down vote accepted

You can use the Terminal Services query command for this.

query session /server:remote_computer_name_here

Note that you will need to set the following registry value on the remote computer:

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
Value Name: AllowRemoteRPC
Value: 1

You could put the query command in a batch file, so users can just double click it to see who is logged into that computer.

share|improve this answer

You could use the Windows Sysinternals tool PSLoggedOn.

Usage: psloggedon [- ] [-l] [-x] [\\computername | username]

- Displays the supported options and the units of measurement used for output values.

-l Shows only local logons instead of both local and network resource logons.

-x Don't show logon times.

\\computername Specifies the name of the computer for which to list logon information.

username If you specify a user name PsLoggedOn searches the network for computers to which that user is logged on. This is useful if you want to ensure that a particular user is not logged on when you are about to change their user profile configuration.

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.