Does Windows have a "automatically deny elevation request" list?
If a user is a "standard user", it is possible to have Windows automatically deny any elevation requests by changing the
ConsentPromptBehaviorUser group policy setting to Automatically deny elevation requests:
Prompt for credentials on the secure desktop.(Default) When an operation requires elevation of privilege, the user is prompted on the secure desktop to enter a different user name and password. If the user enters valid credentials, the operation continues with the applicable privilege
Prompt for credentialsWhen an operation requires elevation of privilege, the user is prompted to enter an administrative user name and password. If the user enters valid credentials, the operation continues with the applicable privilege
Automatically deny elevation requestsWhen an operation requires elevation of privilege, a configurable access denied error message is displayed. An enterprise that is running desktops as standard user may choose this setting to reduce help desk calls
This is useful in a situation where a program might prompt to elevate, but that would require the guy from helpdesk to run three buildings over (to enter their over the shoulder credentials). Only once they get there, they discover that the user shouldn't run that program.
We want the application to run as a standard user (possibly getting access denied errors), since that's the correct answer.
But that setting applies to all programs that elevate. Is it possible to
- mark a program, or
- add it to a list
so that it is automatically denied elevation requests, and runs as a standard user?
The problem happens when a program has been mistakenly:
- marked as
requireAdministratorin it's embedded or external manifest
- has had the "Run this program has an administrator" compatibility option checked
- is being detected as a setup program (e.g. in named install or setup) through the
Note: Assuming the application had no manifest, one might suggest adding a manifest indicating
requestedExecutionLevel: asInvoker. This solution would also disable file and registry virtualization for the application.
- Prevent elevation (UAC) for an application that doesn't need it (no solution found)
- How to tell Windows 7 that an application does not need to run with admin rights? (answer for that situation is to add a manifest)
- How to determine why application is prompting for elevation