How to Disable the UAC Prompt for a Specific Application

While I like User Account Control (UAC), there’s always that one application that you need to run that requires admin rights. This is especially problematic if you need to automate that application from a batch file, scheduled task, or code build. While I guess you can hire someone to click on the Continue button, it’d be much better to turn off UAC for that one application. Fortunately, the Knowledge Base Article 946932 shows you exactly how to do that.

Full credit to Charlie Russel and his excellent x64 blog for finding this gem.

John Robbins

View Comments

  • It disables the prompt, all right, but it will run as the invoking user's unprivileged token, NOT with administrative rights. There's no way round it - if you need parts of your build to be elevated you'll need to run all of it from an elevated command prompt.
    If it were possible to set a simple bit somewhere to avoid the prompt and run elevated, I'm sure malware would find it.

  • I was going to add Mike's point, but it's already been made. I'll add another: you don't need to command line to install an SDB. If you already have Compatibility Administrator open and running elevated, just right click on the database and select install.

Recent Posts

8-Step AWS to Microsoft Azure Migration Strategy

Microsoft Azure and Amazon Web Services (AWS) are two of the most popular cloud platforms.…

1 week ago

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

2 weeks ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

4 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

2 months ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago