Windows – Automate UAC to not prompt for admin user/pass when app needs “run as administrator”

administratorpermissionsuacwindowswindows 10

Every time I try installing a program that needs elevated permissions in order to do so I'm always prompted to put my admin username and password in. This gets quite annoying when installing or tweaking a setting at my work.

I had it configured to just click "yes or no" when running something that needed elevated permissions and once I clicked "yes" it would just continue as my administrator account – but I forgot how to do it and now I am running Windows 10.

Note that I don't want to just right-click on an app and select "run as administrator". I need something that's permanent for anything I run that needs that.

If someone know how to go about doing this then please let me know!

Best Answer

As I understand your question, UAC now prompts you for a username and password, and you would prefer to see a "Yes/No" UAC prompt instead.

Normally if you are not logged in as a local Administrator, the UAC prompt you for credentials. Otherwise, you will get the standard Yes/No (Admin Approval) UAC prompt.

This behavior can be changed in the Local Security Policy.

  • Open the Local Group Policy Editor gpedit.msc (as an Administrator).
  • Navigate to the following: Computer Configuration, Windows Settings, Security Settings, Local Policies, Security Options
  • Check the policies starting User Account Control, specifically
    • Run all administrators in Admin Approval Mode: Enabled
    • Behavior of the elevation prompt for administrators in Admin Approval Mode: Prompt for consent for non-Windows binaries