whoami
Windows CMD · Users and permissions · available in the simulator
What it does
Displays currently logged-on user information.
Syntax
whoami [/user] [/groups] [/priv] [/all] [/fo formato]
Options and parameters
/allDisplays user name, groups, privileges, and SID.
whoami /all/groupsDisplays the groups to which the user belongs.
/privDisplays the user privileges.
/userDisplays the user name and SID.
/upnDisplays the name in UPN format.
/fqdnDisplays the fully qualified distinguished name.
/logonidDisplays the logon session ID.
/foOutput format: TABLE, LIST, or CSV.
Usage examples
whoamiwhoami /allwhoami /groups