Jump to content
Sign in to follow this  
grwork1

#RequireAdmin with AutoItX3 in a VB script.

Recommended Posts

grwork1

I am failing to control MMC Internet Information Services (IIS) Manager dialog. Searching the forum; the answer would seem to be to add #RequireAdmin. Problem is #RequireAdmin is not defined in AutoItX help and gives syntax error in VB script. How do I achieve the #RequireAdmin fuctionality in a VB script using AutoItX. My script, preceded by some notes, is attached.

Grateful for any help.[update: Calling IsAdmin reveals that true so perhaps this is not a permissions issue but a basic error on my part in using ControlClick?

Edited by grwork1

Share this post


Link to post
Share on other sites
Richard Robertson

VB Scripts cannot be run as administrator very easily. You'd have to invoke the script interpreter with administrator privileges instead.

  • Like 1

Share this post


Link to post
Share on other sites
grwork1

Thanks for replies so far.

Re. IDE. I am not using one but running a VB script via cscript at a Win 7 Admin Command Prompt.

Re. Admin permissions. I'm not convinced that this is my problem as I can ControlClick on other controls in the MMC IIS dialog.

In short, could somebody with AutoItX knowledge Run the MMC IIS Manager and try to activate the 'View Sites' control in the right-hand pane because I sure as hell can't.

New simplified VB test script attached.

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  

×