Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

up vote 2 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
add comment

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
add comment

query session which is the same as qwinsta

query session /server:SERVER2

http://technet.microsoft.com/en-us/library/cc785434(v=ws.10).aspx#BKMK_examples

share|improve this answer
1  
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
1  
There's no console session in Windows Server 2008 or Windows Server 2008R2. –  joeqwerty Apr 27 '12 at 10:34
add comment

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.