au3scr Posted January 1, 2008 Posted January 1, 2008 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)
DW1 Posted January 1, 2008 Posted January 1, 2008 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. AutoIt3 Online Help
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now