What's the best way to see logged in users in Windows Server 2012?

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.


Solution 1:

Use the query user command

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

Solution 2:

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

Task-Manager

Solution 3:

"quser" command will give you the active now users

the same result will give you the "qwinsta" command

Solution 4:

Get-WMIObject -class Win32_ComputerSystem -ComputerName 192.168.1.9 | Select-Object UserName

where 192.168.1.9 is the IP of the server