Sign in to follow this  
Followers 0
au3scr

Run as

3 posts in this topic

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 )

and

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

thank you


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