UAC Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3005
Answer
Troubleshoot UAC issues by checking whether the app needs elevation, local account remote restrictions (LocalAccountTokenFilterPolicy), mapped drives missing in elevated sessions and UAC policy settings.
Remember
- Mapped drives are not visible in elevated sessions by default.
- Remote local admin accounts get filtered tokens.
- Apps without a manifest may fail.
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
Commands
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System'- Operational command for Read Windows UAC policy registry state. Focus fields: EnableLUA, ConsentPromptBehaviorAdmin, Pr…
whoami /groups- Inspect effective Windows group token. Focus fields: user SID, group SIDs, attributes and enabled/deny-only token membe…
whoami /priv- Read-only observation for privileges present and enabled in the current token.
Verify in this order
logon → filtered token → elevation → separate token/session differences
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=3005