|
|
WHOAMI.exe (Resource kit)
Displays the username and domain for the currently logged in
user.
The whoami output is the same as the 2 environment variables %USERDOMAIN% and
%USERNAME%.
So the same output can be achieved with
ECHO %USERDOMAIN%\%USERNAME%
Under Windows 2000 there is an additional switch WHOAMI /all - this shows
all permissions and group memberships.
"We can now manipulate images to such an extrodinary extent that there's
no lie you cannot tell" - Sir
David Attenborough
Related Commands:
SET - Display, set, or remove Windows NT environment variables
VER - Display version information
VOL - Display a disk label
Whereami.cmd - Display user information
Equivalent Linux BASH commands:
id - Print user and group id's
who - Print who is currently logged in
whoami - Print the current user id and name (`id -un')