WHOAMI CMD (Who am I (current user))
Show the current user, domain, and groups. Syntax: whoami [/all]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: whoami [/all]
- Brief: Show the current user, domain, and groups.
- Example: whoami
- Tip: whoami /priv lists all security privileges of the current token.
Reference: learn.microsoft.com