UAC Prompts
Cheat sheet · https://pcornel.dk/topic.php?topic=3003
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 tokenGet-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System | Select EnableLUA,ConsentPromptBehaviorAdmin— UAC settingsStart-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