wking Posted March 12, 2006 Posted March 12, 2006 Hi, I'm newbie to autoit scripting. I have a vbs login script that adds an account to the the local administrator group of computer, thus the script needs to be run under a domain admin or any account that have permission to do that. I know that the autoit RunAs function can handle stuffs such as deploying application to a client PC using (domain) admin account, providing the admin account credential. How to do the same in running that vbs login script so that the script will be executed under my admin account? Thank you very much for your help.
well-knownQ8 Posted March 12, 2006 Posted March 12, 2006 RunAs functionRunAs function can't run vbs directly, but u can do that by running wscript or cscript like:RunWait('cscript.exe '& @ScriptDir & "\FileName.vbs")more...http://www.autoitscript.com/forum/lofivers....php?t2252.html
wking Posted March 14, 2006 Author Posted March 14, 2006 heaps thanks for your help, i can get it work now using that line you wrote. again, thank you.
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