Jump to content

Recommended Posts

Posted

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)

Posted

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.

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
×
×
  • Create New...