Use this when an app needs elevation, admin rights behave unexpectedly, or remote admin access is blocked by UAC.
UAC
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.
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.
admin logs on → filtered token → elevation prompt → full token for that process
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
Operational reference
Fast context before you go deeper.
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.
Subtopics
Go one level deeper into this subject.
User Account Control limits the damage malware and mistakes can do by running users without admin rights until elevation is approved.
Subtopic ElevationElevation is starting a process with the full administrator token, via Run as administrator, a manifest requesting it, or Start-Process -Verb RunAs.
Subtopic Admin Approval ModeAdmin Approval Mode gives administrator accounts two tokens: a filtered standard token for normal use and a full token used only after an elevation prompt is approved.
Subtopic UAC PromptsUAC prompts ask for consent from administrators or credentials from standard users before elevating, shown on the secure desktop.
Subtopic Integrity LevelsIntegrity levels (Low, Medium, High, System) label processes and objects, and a lower-integrity process cannot write to higher-integrity objects.
Subtopic UAC TroubleshootingTroubleshoot UAC issues by checking whether the app needs elevation, local account remote restrictions (LocalAccountTokenFilterPolicy), mapped drives missing in elevated sessions and UAC policy settings.
- Admins run filtered until elevated.
- Local accounts remotely get filtered tokens.
- Turning UAC off weakens more than prompts.
whoami /groups | findstr Level— integrity level of the current tokenGet-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System | Select EnableLUA,ConsentPromptBehaviorAdmin— UAC settingsStart-Process <app> -Verb RunAs— start elevated
ReferenceWhy it matters1 section · depth on demand
How UAC works
| Account | Token | Elevation |
|---|---|---|
| Standard user | Standard | Credential prompt (admin password) |
| Admin (Admin Approval Mode) | Filtered standard + full admin | Consent prompt |
| Built-in Administrator | Full (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):
| Setting | Recommended |
|---|---|
| Admin Approval Mode for built-in Administrator | Enabled |
| Behaviour of elevation prompt for admins | Prompt for consent on secure desktop |
| Behaviour for standard users | Prompt for credentials (or deny) |
Run all administrators in Admin Approval Mode (EnableLUA) | Enabled |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%