Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

UAC

Direct answer

UAC (User Account Control) makes even administrators run with a standard token by default and asks for consent or credentials before elevating, limiting what malware and mistakes can change.

When to use this

Use this when an app needs elevation, admin rights behave unexpectedly, or remote admin access is blocked by UAC.

First 30 seconds

1. Elevated? whoami /groups → High Mandatory Level.

2. UAC enabled: EnableLUA=1.

3. Prompt behaviour per policy.

4. Run as administrator where needed.

5. Never disable UAC to fix an app; fix the app's needs.

Operational verification

admin logs on → filtered token → elevation prompt → full token for that process

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Treating UAC as a security boundary — Microsoft does not; bypasses exist.
  • Users running as local admins, relying only on UAC prompts.
  • Disabling prompts on servers and forgetting remote token filtering.
Platform / version applicability
Windows security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows security
Scope / prerequisiteUse this when an app needs elevation, admin rights behave unexpectedly, or remote admin access is blocked by UAC.
What next?2 suggested next steps
Child topics (this level)6
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Admins run filtered until elevated.
  • Local accounts remotely get filtered tokens.
  • Turning UAC off weakens more than prompts.
Key checks
  • whoami /groups | findstr Level — integrity level of the current token
  • Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System | Select EnableLUA,ConsentPromptBehaviorAdmin — UAC settings
  • Start-Process <app> -Verb RunAs — start elevated
ReferenceWhy it matters1 section · depth on demand

How UAC works

AccountTokenElevation
Standard userStandardCredential prompt (admin password)
Admin (Admin Approval Mode)Filtered standard + full adminConsent prompt
Built-in AdministratorFull (unless policy enables AAM)None

Check elevation with whoami /groups (High Mandatory Level = elevated). Policies: Local Security Policy → Security Options → User Account Control.

ReferenceImportant terms & boundaries2 sections · depth on demand

Tokens

When an administrator logs on with UAC enabled, Windows creates two tokens: a filtered standard-user token used for normal programs and a full administrator token used only after elevation. whoami /groups shows Mandatory Label\Medium Mandatory Level in a normal window and High Mandatory Level in an elevated one.

In depth

UAC runs administrators with a filtered (standard user) token by default and requires consent or credentials to use the full token. It limits silent system changes by malware running as the user, but Microsoft does not treat UAC as a security boundary — bypasses are fixed as bugs, not guaranteed.

Key settings (Local Security Policy → Security Options → User Account Control):

SettingRecommended
Admin Approval Mode for built-in AdministratorEnabled
Behaviour of elevation prompt for adminsPrompt for consent on secure desktop
Behaviour for standard usersPrompt for credentials (or deny)
Run all administrators in Admin Approval Mode (EnableLUA)Enabled
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows security current

Authoritative/upstream documentation reviewed for bounded claims in UAC. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows/win32/secauthz/access-control · confidence 94%
Confirmation

Confirm action

Continue?