Sign in to follow this  
Followers 0
r1hundy

Launch admin CMD to run vbs script to export Bitlocker Recovery key to ADUC

3 posts in this topic

Please be gentle, as I am very very unskilled with AutoIT, although I know what I wish to do with AutoIT, but cannot get my head around the syntax on how to do it  :(

I have searched the forums and not found a way to do what I want.

I have a vbs script that exports Bitlocker Rcovery keys to ADUC.

The issue is that you cannot right click on a vbs script and run as admin.

So I can create an AutoIT script to copy the vbs script to the desktop of the machine when the image (Windows 8.1) is deployed from MDT, I also want to have an Auto IT script that will then launch the CMD prompt as admin, run the vbs script, then delete the vbs script and AutoIT script icon when completed. The IT staff will run the AutoIT script manually when configuring the machines.

I am sure this can be done, but I am pretty thick when it comes to scripting.

Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites



Maybe you us the VBS code and we can try to convert the code to AutoIt.

Or you can try to use the RunAs command (see help file).

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

You could run the autoit script as an admin so the executable has administrative rights.
Just add #RequireAdmin at the top of your script.


Challenge accepted!

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