Marty List brings us NetUsers.
The readme contains:
Displays a list of users logged on to a specified Windows system.
The syntax of this command is:
NetUsers \[\\computername \\...\] \[/history\] \[/local\] \[/verbose\]
\\computername Allows you to query remote systems. Multiple computers
can be specified, each separated by a space.
/history|/h Displays the user accounts that have logged on in the past. If
history is omitted, currently logged on users are displayed.
/local|/l Includes local user accounts in the output, by default they
are skipped. In a domain these are usually service accounts.
/verbose|/v Reports non-fatal problems as errors (such as deleted accounts)
An argument of /? or -? displays this syntax and returns 1.
A successful completion will return 0.
Copyright 2000-2002 Marty List
Updated for Windows XP to skip 'LocalService' and 'NetworkService' accounts.
Added additional internal debugging options.
Fixed a cosmetic bug in the screen output.
Added last logon time to the history output (/h).