Jump to content
Sign in to follow this  

run the script in admin mode

Recommended Posts


i have this script

#Region;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion;**** Directives created by AutoIt3Wrapper_GUI ****

If Not IsAdmin() Then
    RunAs("Administrator",@ComputerName,"bla bla", @ScriptName,@ScriptDir)


RunWait("mmc.exe dfrg.msc",@SystemDir)

but if use it from users dont start why? O_O

PS: i use Scite editor


Share this post

Link to post
Share on other sites

according to the help file:

RunAs ( "username", "domain", "password", logon_flags, "filename" [, "workingdir" [, flag[, standard_i/o_flag]]] )

I guess that you forgot to set the logon_flags

In the beginning there was nothing and then even that exploded - anonymous

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.