Microsoft Windows, Microsoft Windows Server 2003, Microsoft Windows Server 2008, Windows 7

Get a list of currently logged in users in Windows Server

To get a list of currently logged in users in your Windows Server, open a cmd console and issue the following command:

query session

You will get a response like this:

X:pathtosomewhere>query session
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 services                                    0  Disc
>console           my_user_name              3  Active
 rdp-tcp                                 65536  Listen
 
X:pathtosomewhere>