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
  • 14,638
  • 9
  • 54
  • 58
Mike Akers
  • 343
  • 2
  • 5
  • 9

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
  • 23,972
  • 30
  • 99
  • 120
mikieb
  • 331
  • 2
  • 4
14

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

Igal Tabachnik
  • 2,663
  • 8
  • 28
  • 35
  • 1
    Windows XP Pro Version 2002 SP3 - there is no Users tab, only Applications, Processes, Performance and Networking. – Alan Aug 07 '13 at 18:17
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
  • 1
  • 13
  • 23
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
user202604
  • 21
  • 2