The whoami
command shows information about the user, groups, and privileges for the account currently logged on to the local system. When run without any parameters, whoami
returns the current domain and user name.
whoami [/upn | /fqdn | /logonid]
whoami {[/user] [/groups] [/claims] [/priv]} [/fo <format>] [/nh]
whoami /all [/fo <format>] [/nh]
Parameters Parameter Description /upn Displays the user name in user principal name (UPN) format. /fqdn Displays the user name in fully qualified domain name (FQDN) format. /logonid Displays the logon ID of the current user. /user Displays the current domain and user name and the security identifier (SID). /groups Displays the user groups to which the current user belongs. /claims Displays the claims for current user, such as claim name, flags, type and values. /priv Displays the security privileges of the current user. /fo <format> Specifies the output format. Valid values include:
To display the domain and user name of the person who is currently logged on to this computer, type:
whoami
Output similar to the following appears:
DOMAIN1\administrator
To display all of the information in the current access token, type:
whoami /all
Related links
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4