3 thoughts on “ElevateWscript.vbs

  1. Pingback: Running VBScripts with UAC Elevation | Sigkill IT

  2. I tried using the script and when I run it on my account (I have administrator access) it works fine, calls my script and everything is fine. When I run it on an account that doesn’t have administrator access it gives me an error saying I do not have Active Directory access. I have tried so many different scripts and variations to get this to work but I am having no luck and was wondering if you could help me. TIA.

    • If your script is accessing Active Directory, the account running the script needs permissions to your Active Directory. If the user account does not have permissions to active directory, you must use “RunAs” to run the script as a user that has access such as the domain admin.

      This script is designed for issues running scripts on a local computer that has User Account Control enabled. I explain all of this here:

Leave a Reply

Your email address will not be published. Required fields are marked *