Jump to content

Setting Privileged level (UAC)


 Share

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.

Thanks!

Edited by Nihility
Link to comment
Share on other sites

  • Developers

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

Link to comment
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.

Chimaera

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...