A systems administrator is configuring Windows 11 Pro workstations used for automated nightly batch tasks. An administrative script assigned to run under a local administrator account fails to complete because User Account Control (UAC) pauses execution while waiting for interactive consent on the Secure Desktop. To allow automated background execution for administrative accounts while maintaining UAC protections for standard users, which Local Security Policy setting should be modified?
- User Account Control: Behavior of the elevation prompt for administrators in Admin Approval ModeAnswer
- BUser Account Control: Switch to the secure desktop when prompting for elevation
- CUser Account Control: Run all administrators in Admin Approval Mode
- DUser Account Control: Only elevate executables that are signed and validated
Answer
Modify 'User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode' to 'Elevate without prompting'.
The policy setting 'User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode' explicitly controls how Windows handles privilege elevation for administrative accounts. Setting this policy to 'Elevate without prompting' allows applications and scripts executed by administrative accounts to automatically receive elevated rights without waiting for user input on the Secure Desktop.
Step-by-Step Solution
Key Concept
Windows Local Security Policy UAC Elevation Settings