1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-06 11:15:24 +02:00
tldr/pages/windows/whoami.md
2022-10-16 01:41:04 -03:00

28 lines
558 B
Markdown

# whoami
> Display details about the current user.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/whoami>.
- 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`
- Display the logon ID of the current user:
`whoami /logonid`
- Display all information for the current user:
`whoami /all`