Windows Commands / IT Support Guides
Understand the current Windows identity with whoami
Check which Windows account, groups, and privileges are active in your current terminal.
Environment and inputs: Windows 11 · Command Prompt unless PowerShell is specified
Understand the problem
Run the checks in the terminal that saw the error. A session opened with Run as administrator can have different permissions from a regular session.
Run the command
Run whoami for the account name, whoami /groups for group membership and attributes, and whoami /priv for privileges and their current state.
whoami
whoami /groups
whoami /priv
Read the output
A group marked Deny only cannot grant access through that session. In the privileges list, Disabled means the privilege is present but currently disabled.
Choose the next step
Compare the results with the account and session type the application expects. If membership changed recently, sign in again before comparing.
Before making changes
Record the relevant account or group in the ticket. Use approved access changes rather than switching accounts simply to make an error disappear.