Sign in to follow this  
Followers 0
Nihility

Setting Privileged level (UAC)

4 posts in this topic

#1 ·  Posted (edited)

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

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ops yeah :graduated:

Edited by eracross

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.

Chimaera

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  
Followers 0