CMD Master
Back to Blog
Arnošt Havelka

Practical: Whoami

Scenario: Checking permissions and user context.

Start Interactive Lesson
Practical: Whoami

Practical: Who Am I?

"Whoami" isn't an existential question; it's a critical security command. When you run a script, it runs with your permissions. You need to verify if you are a regular user or an Administrator.

The Mission

Check your current user Groups to see if you have Admin privileges.

Step 1: Basic Identity

Command Prompt
C:\Users\User>whoami

Step 2: Check Groups (Privileges)

Use /groups to see if you belong to "Administrators".

Command Prompt
C:\Users\User>whoami /groups

Step 3: Check Privileges

Use /priv to see exactly what you are allowed to do (e.g., Shut down the system, Change time).

Command Prompt
C:\Users\User>whoami /priv

Knowledge Check

1 / 2

How do you check if you are an administrator?

Up Next

Practical: Relative Paths

Navigate like a pro using .. and .