Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

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.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

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.

Source & further reading

Microsoft Learn — whoami

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles