Overview
The UAC command enumerates User Account Control (UAC) settings from the registry. UAC is a Windows security feature that helps prevent unauthorized changes by prompting for elevation. Understanding UAC configuration is crucial for assessing privilege escalation difficulty and planning bypass techniques.Syntax
Remote Execution
Output
Returns UAC configuration:- UAC enabled/disabled status
- Consent prompt behavior for administrators
- Consent prompt behavior for standard users
- Admin Approval Mode status
- Elevation prompt for standard users
- Secure desktop for elevation prompts
- Virtualization enabled status
Use Cases
- Red Team
- Blue Team
- Assess UAC bypass difficulty
- Determine elevation prompt behavior
- Plan privilege escalation approach
- Identify UAC auto-elevation opportunities
- Check if UAC is disabled
Example Output
Remote Execution
This command supports remote execution using the
-computername parameter.Detection Considerations
Low detection risk - reads UAC registry settings.
- Registry Access: Queries
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - WMI Activity: Remote execution generates WMI events
UAC Settings Explained
ConsentPromptBehaviorAdmin Values
ConsentPromptBehaviorAdmin Values
0 - Elevate without prompting (least secure)
1 - Prompt for credentials on secure desktop
2 - Prompt for consent on secure desktop
3 - Prompt for credentials
4 - Prompt for consent
5 - Prompt for consent for non-Windows binaries (default)
ConsentPromptBehaviorUser Values
ConsentPromptBehaviorUser Values
0 - Automatically deny elevation requests
1 - Prompt for credentials on secure desktop (default)
3 - Prompt for credentials
Related Commands
- LocalGroups - Local admin group membership
- TokenPrivileges - Current token privileges
- AppLocker - AppLocker configuration
- LocalGPOs - Local Group Policy settings