Sign in to follow this  
Followers 0
chrenko

Run program as Administrator

4 posts in this topic

Hi,

i am newie in autoit, can you help me with my problem? I would like to run a program with administration rights under account with resctricted rights. For example:

c:\ProgramFiles\programXY\xy.exe

user: XXX

password: YYY

computer name: COMPUTER

domain: ZZZ

i downloaded AutoIt3 and i dont know how to use it. Thanx for your help.

Share this post


Link to post
Share on other sites



Hi chrenko.

Glad to see you in Autoit Community.

I think you need

#RequireAdmin

Just add it to bottom of your script.


[size="5"] [/size]

Share this post


Link to post
Share on other sites

2both of you, thanx for your quick answers.

AdmiralAlkex: runas working perfect!

it looks like this:

RunAs ( "XXX", "COMPUTER", "YYY", 0, "c:\ProgramFiles\programXY\xy.exe")

so easy to use, thanx for your helpfully information!

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