Sign in to follow this  
Followers 0
devi

Run a program with administration rights

2 posts in this topic

I would like to run a program with administration rights under account with administrator in windows 7. For example:

c:\ProgramFiles\abc\def\xy.exe

user: XXX

password: YYY

computer name: COMPUTER

domain: ZZZ

i use RunAs ( "XXX", "COMPUTER", "YYY", 0, "c:\ProgramFiles\abc\def\xy.exe")

#RequireAdmin

but iam not able t run the exe file.please help me .

Share this post


Link to post
Share on other sites



put in this line at the top of your script.

#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator


Challenge accepted!

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