Sign in to follow this  
Followers 0
Hoardling

RunAs to start .exe on CD\DVD

3 posts in this topic

I am trying to get a .exe on a CD\DVD to run under administrative rights using AutoIT.

My code looks like this:

RunAs("SysAdministrator","Domain","Password",0,"D:\run.exe")

It doesn't seem to want to run. Not sure what I am doing wrong. It is simply getting and .exe to run from a CD\DVD under Admin rights.

Any ideas or am I totally doing this wrong?

Thank You.


Planets come and go. Stars perish. Matter disperses, coalesces, forms into other patterns, other worlds. Nothing can be eternal. Dr. Who

Share this post


Link to post
Share on other sites



I don't know what are you doing wrong; I never used any other flag that 2 (Network credentials only)

Did you try that flag value? Are you sure that all the parameters you use are correct?

The code is simple enough to not worry about anything else but paramaters.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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