Use this when a program must run elevated.
Elevation
Elevation is starting a process with the full administrator token, via Run as administrator, a manifest requesting it, or Start-Process -Verb RunAs. Elevated windows show Administrator in the title.
1. Does the task require admin rights?
2. Start elevated: Start-Process <app> -Verb RunAs.
3. Check level: whoami /groups (High).
4. Scheduled/remote tasks run elevated by configuration ("Run with highest privileges").
5. Avoid permanent elevation.
filtered token → consent/credential prompt → elevated full token
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Running everything as administrator.
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.
- Run as administrator starts an elevated process.
- An application manifest can request elevation.
- Start-Process -Verb RunAs elevates from PowerShell.
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
Ways to elevate
| Method | Example |
|---|---|
| GUI | Right-click → Run as administrator |
| PowerShell | Start-Process powershell -Verb RunAs |
| Application manifest | requestedExecutionLevel level="requireAdministrator" |
| Scheduled task | "Run with highest privileges" |
| Windows 11 24H2+ | sudo command (if enabled) |
Check whether the current shell is elevated: ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole('Administrators') or whoami /groups | findstr High.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Elevation starts a process with the user's full admin token (or other credentials).
Start-Process powershell -Verb RunAs
runas /user:CORP\adm-alice "mmc.exe compmgmt.msc"
whoami /groups | findstr /i "Mandatory Label" # High = elevated
Windows 11 24H2 adds sudo (Settings → System → For developers) for elevating single commands from a non-elevated console. Applications request elevation via their manifest (requireAdministrator, highestAvailable, asInvoker).
ReferenceConfiguration & state1 section · depth on demand
Commands
Start-Process powershell -Verb RunAs
runas /user:CORP\admin-patrick "mmc.exe dsa.msc"
sudo winget upgrade --all # Windows 11 24H2+ with sudo enabled
Documented example, not captured output. runas starts a process with another account; it does not elevate the current one.
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 → Elevation. 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%