2018-07-09 15:06:56 +01:00
|
|
|
# whoami
|
|
|
|
|
|
|
|
> Display details about the current user.
|
2020-09-16 13:19:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/whoami>.
|
2018-07-09 15:06:56 +01:00
|
|
|
|
|
|
|
- Display the username of the current user:
|
|
|
|
|
|
|
|
`whoami`
|
|
|
|
|
|
|
|
- Display the groups that the current user is a member of:
|
|
|
|
|
|
|
|
`whoami /groups`
|
|
|
|
|
|
|
|
- Display the privileges of the current user:
|
|
|
|
|
|
|
|
`whoami /priv`
|
|
|
|
|
|
|
|
- Display the user principal name (UPN) of the current user:
|
|
|
|
|
|
|
|
`whoami /upn`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Display the logon ID of the current user:
|
2018-07-09 15:06:56 +01:00
|
|
|
|
|
|
|
`whoami /logonid`
|