44

Right now I use a powershell script to see the currently logged in users. But I don't see if their session is idle, active or inactive. I can see when the session was started, that's it. Is there an easy way to see how many users are currently logged in to the server I am logged in and see their status? It should not be remotely executed. I would like to avoid third party tools if possible.

63

Use the query user command

Query User Command
http://technet.microsoft.com/en-us/library/bb490801.aspx

40

Open the Task-Manager and see the users tab. There you will find a list of users and their status.

Task-Manager

  • thanks, but this status is not "correct" it's empty while the cmd query user shows me "active" – RayofCommand May 26 '14 at 10:43
3
Get-WMIObject -class Win32_ComputerSystem -ComputerName 192.168.1.9 | Select-Object UserName

where 192.168.1.9 is the IP of the server

3

"quser" command will give you the active now users

the same result will give you the "qwinsta" command

1

Use quser or query user to check users connected

quser

query user

quser or query user

Use qwinsta or query session to check sessions connected

qwinsta

query session

enter image description here

1

Also you can use the "UserLock" application to see which users logged in. By this 3rd party tool you can manage the session of the users as well as remote desktop sessions. It is a great tool in this case. I suggest you try this tool.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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