Jump to content
Sign in to follow this  

Setting Privileged level (UAC)

Recommended Posts

Let me draw out the scenario so someone can get a good picture of what's going on.

I have an application that requires Admin access on 400+ machines. Without having the developers re-write the launcher for the application our current workaround is setting the privilege level of the app to 'Run This Program As Administrator'

This is done by simply right clicking on the Exe/Properties/ compatibility / Run This Program AS Administrator.

We are required to do this as we've decided to leave UAC on.

Is there a way to have Autoit put the 'Run This Program as an Administrator' flag on the exe? I assumed I could do this with a bat, however i've yet to find anything regarding how to do this.


Edited by Nihility

Share this post

Link to post
Share on other sites

Install the Full SciTE4AutoIt3 and use directive:

#AutoIt3Wrapper_res_requestedExecutionLevel=    ;None, asInvoker, highestAvailable or requireAdministrator

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

Its not a code answer but you can create a shortcut to the exe

and in the advanced settings on the shortcut tab tick the run as admin tickbox then save and your shortcut will start the main exe with admin priveledges.

I run installs from Cmd this way, UAC may still ask on running the shortcut but after that it will all be admin i think.


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...