Is there any way for a user to interact with a uac prompt for admin privileges despite not being not able to use a physical keyboard, mouse or foot pedal? I use both voice and eyetracker software, Dragon naturally speaking and Optikey,but neither can interact with uac, AFAIK. One workaround, that I use is using something like Teamviewer to interact with the uac prompt. This is not ideal, as it requires a second accessible computer. Is there another approach that obviously doesn't need to disable uac either? Perhaps something like a physical key (e.g. Usb)?
consent.exe) is a high-privilege application (runs as LocalSystem), which by default prevents other applications (such as accessibility programs) from interfacing with it.
However, Microsoft is aware of this limitation, and created the "UIAccess" application property, which bypasses that limitation (if set to "true"), under the following conditions:
- The application is signed with a trusted signing key.
- The application is installed under the Program Files / Program Files (x86) directory, or in the System32 directory.
Dragon should fulfill all of these requirements, unless you installed it in a non-default location.
However, by default, UAC prompts also appear on a special "desktop" (not the same as the virtual desktops feature of Win10). This also prevents programs from interacting with the prompt. Therefore, you need to turn off the Secure Desktop for UAC prompts. There are two ways to do this:
- Search for "UAC" and open the "Change User Account Control settings" result, then move the slider down to the third position from the top (will say "Don't dim the desktop").
- Open the "Local Security Policy" management console (
secpol.msc), then into "Local Policies" > "Security Options", and change the following settings:
- "User Account Control: Behavior of the elevation prompt for Administrators in Admin Approval Mode" should be set to "Prompt for Consent". The default value might also work (with the next setting) but I'm not sure.
- "User Account Control: Switch to the secure desktop when prompting for elevation" should be set to "Disabled".
At that point, accessibility tools - including eye trackers and dictation tools - should be able to interact with UAC prompts, if they were installed correctly.