Home XP Commands
XP Syntax

PsLoggedOn (part of PsTools - download PsLoggedOn)

See who is logged onto a computer, either locally or remotely

Syntax
      psloggedon [- ] [-l] [-x] [\\computer | username]

Options:

   computer   The computer on which the process is running. Default=local system 

   -l         Show only local logons instead of both local and network resource logons.

   -x         Don't show logon times.

   username   Search the network for computers to which that user is loggedon.

   -          Help, display all options and units of measurement used.

PsLoggedOn's definition of a locally logged on user is one that has their profile loaded into the Registry.

Note that PsLoggedOn will show you as logged on via resource share to remote computers that you query because a logon is required for PsLoggedOn to access the Registry of a remote system.

Examples:

List all processes running on \\workstation64:

pslist \\workstation64

WhoIsLoggedOnWhere.cmd - script to list all workstations

Related Commands:

net session - List or disconnect user sessions (Local machine only)

Equivalent Linux BASH commands:

who - Print who is currently logged in



Back to the Top

Simon Sheppard
SS64.com