Pcornel
Windows · UAC

Elevation

Cheat sheet · https://pcornel.dk/topic.php?topic=3001

Back to the Topic

Answer

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.

Remember

  • Run as administrator starts an elevated process.
  • An application manifest can request elevation.
  • Start-Process -Verb RunAs elevates from PowerShell.

First 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

Commands

sudo

Verify in this order

filtered token → consent/credential prompt → elevated full token

Where it usually breaks

First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3001

Confirmation

Confirm action

Continue?