All about Information Technology!

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:\path\to\somewhere>query session
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 services                                    0  Disc
>console           my_user_name              3  Active
 rdp-tcp                                 65536  Listen
 
X:\path\to\somewhere>

, , , , , , , , , , , ,

Leave a Reply