11

How do I find out which users are logged into a Windows XP machine?

I'm looking for something like the Unix who command, or a screen that just gives me a list of users currently logged in.

random
  • 15,201

4 Answers4

21

qwinsta from the command line should show you who logged on, though I'm not sure if that's just for terminal server sessions or not.

C:\Users\wumpus-home>qwinsta
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 services                                    0  Disc
>console           Jeff                      1  Active
Jeff Atwood
  • 24,402
mikieb
  • 331
14

You can see logged on users in the Users tab in Task Manager.

6

psloggedon - a small utility that is part of the SysInternals Suite of tools

Stand-alone link: http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx

Hafthor
  • 980
2

In a Batch on windows 7 you could use:

FOR /F "skip=1 tokens=1,2,* delims= " %%I IN ('qwinsta console') DO echo %%J