Jump to content
Sign in to follow this  

Run AutoIt executable in elevated mode without UAC popup

Recommended Posts


I am troubeling currently about running an elevated script (with #RequireAdmin) and disabling the UAC elevation popup.

Regarding this article there is a way to disable UAC elevation popup on a per application base:

A quick run down:

1. Install the Application Compatibility Toolkit 5.0 (I am using V5.6).

2. In the Start menu, locate the Compatibility Administrator inside the ACT folder. Right-click it and Run as administrator.

3. In the left hand pane, right-click on the database under Custom Databases and select Create New, and select Application Fix.

4. Enter the name of the application you want to alter and browse to it to select it.

5. Click Next until you are in the Compatibility Fixes screen.

6. On the Compatibility Fixes screen, find the item RunAsInvoker, and check it.

7. Click Next and Finish.

8. Select File and Save As. Save the file as appname.sdb in a directory you will easily find it.

(9. Copy the appname.sdb file to the Vista computer you want to alter the elevation prompt behavior on.)

10. Click Start>All Programs>Accessories. Right click Command Prompt and click Run as administrator.

11. Run the command: sdbinst appname.sdb

It should display: Installation of "appname" complete.

While this is working for example for device manager, regedit and a little C++ program which is also requiring elevation, I will still get the UAC elevation popup for the compiled AutoIt-Script.

For testing I was using the following little script:


If IsAdmin() Then
    MsgBox(0, "", "Admin rights detected")
    MsgBox(0, "", "Normal rights detected")

Any Idea what kind of setting I am missing?

Thank you very much for your support!

Best regards,


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...