Sign in to follow this  
Followers 0
mega128

Execute a .vbs from AutoIT

4 posts in this topic

Hi all,

I am trying to run a vbscript as local administrator account?

I wrote this but I am sure that this is not the best way to do it. Is there anyway to run this while cmd is hidden. Also, I don't this this code even is running as local admin account when pointer goes to cmd. Please help.

Thanks all for reading!

RunAsSet("local_admin_account",@ComputerName,"password")

RunWait("cmd")

send("C:\temp\test.vbs")

RunAsSet()

:P

Share this post


Link to post
Share on other sites



Hi all,

I am trying to run a vbscript as local administrator account?

I wrote this but I am sure that this is not the best way to do it. Is there anyway to run this while cmd is hidden. Also, I don't this this code even is running as local admin account when pointer goes to cmd. Please help.

Thanks all for reading!

RunAsSet("local_admin_account",@ComputerName,"password")

RunWait("cmd")

send("C:\temp\test.vbs")

RunAsSet()

:P

well the thing is, it runs cmd as admin, but that is the only run() that is called as admin. The thing is, the vbs is actually being run by WScript.exe. so you may want to try....

RunAsSet("local_admin_account",@ComputerName,"password")
RunWait("WScript.exe c:\temp\test.vbs")

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

cameronsdad,

Thank you so much it worked like charm.

Thanks again,

Mega128

:P

Share this post


Link to post
Share on other sites

cameronsdad,

Thank you so much it worked like charm.

Thanks again,

Mega128

:P

glad i could help

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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