Server Fault is a question and answer site for system and network administrators. 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

My windows server 2008 allows only one user to login at a given time. When another user tries to remote login into the same server, the previously active user's session gets disconnected. This is creating few problems for us.

Can anyone tell me a way to find whether a user has already logged into the server/ to find currently active user without actually having to login into the server so that the already active user's session will not be disturbed.

share|improve this question
up vote 3 down vote accepted

You could use psexec from Sysinternals to remotely run the command "quser". This will list all logged in users, along with whether they're at the console or on RDP.

That said, I don't think it should automatically take other sessions and I'm pretty certain you can have up to 2 as standard.

share|improve this answer
thanks a lot :) – user735647 Apr 27 '12 at 7:38

Other way (with gui) -> C:\windows\system32\tsadmin.msc and add the server to your group to see which Sessions are connected.

share|improve this answer

query session which is the same as qwinsta

query session /server:SERVER2

share|improve this answer
Remember there is also the console session available but if this is a regular problem you should buy more TS licences. – ramruma Apr 27 '12 at 7:31
thanks a lot for the information – user735647 Apr 27 '12 at 7:41
There's no console session in Windows Server 2008 or Windows Server 2008R2. – joeqwerty Apr 27 '12 at 10:34

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.