Jump to content
Sign in to follow this  

Run as

Recommended Posts


How to make script that run as an other user?

I want make script that runs with other account

I tried this

RunAsSet ("user","",password,0)

msggox (1,"user name is",@UserName)

but it didnt work.So how i do it ?

(windows XP)

Share this post

Link to post
Share on other sites

RunAsSet will only be logged as that user when you Run or RunWait something.

If you have

C:\test.exe (compiled from au3) =

MsgBox(0, "test", @UserName )


call.au3 =

RunAsSet( "Username", "Domain", "Password" )

Run( "C:\test.exe" )

Then when call.au3 calls test.exe, test.exe will display the new username.

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.