Pcornel
Windows · UAC

UAC Prompts

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

Back to the Topic

Answer

UAC prompts ask for consent from administrators or credentials from standard users before elevating, shown on the secure desktop. Their behaviour is set by UAC slider or local security policy.

Remember

  • Admins get consent prompts; standard users get credential prompts.
  • Prompts appear on the secure desktop.
  • Policy controls prompt behaviour.

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

Verify in this order

elevation requested → prompt on secure desktop → approved → elevated

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=3003

Confirmation

Confirm action

Continue?