UAC
Cheat sheet · https://pcornel.dk/topic.php?topic=2999
Answer
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.
Remember
- Admins run filtered until elevated.
- Local accounts remotely get filtered tokens.
- Turning UAC off weakens more than prompts.
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
admin logs on → filtered token → elevation prompt → full token for that process
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=2999