mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 06:42:54 +00:00
34 lines
652 B
Plaintext
34 lines
652 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|