Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 318771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:36:01+00:00 2026-05-12T08:36:01+00:00

IIS 6 and older ships with a utility script called ADSUTIL.VBS : Adsutil.vbs is

  • 0

IIS 6 and older ships with a utility script called ADSUTIL.VBS:

Adsutil.vbs is an IIS administration
utility that uses Microsoft Visual
Basic Scripting Edition (VBScript)
with Active Directory Service
Interfaces (ADSI) to manipulate the
IIS configuration. This script should
be run using CScript, which is
installed with Windows Script Host.

In other words, this tool lets you change IIS metabase settings programmatically, from the command line.

I would like to call this tool from an InstallShield project in order to make some configuration changes to IIS. I am curious if it either legal to re-distribute the script (there is no legal wording inside the source for it) or to simply launch the command via:

CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs

and hope that the script exists on disk in that location.

So my question is – will it always exist in that path above, even if some other websites (inetpub roots) on the machine are located on a non-system drive? It seems all MSDN and other Microsoft KB articles that refer to the ADSUTIL tool do so by using the %SYSTEMDRIVE% path above.

I see that at least one other attempt to deal with this by distributing both cscript.exe and adsutil.vbs with their InstallShield projects.

Perhaps there is a registry key or other method to obtain the location of the Inetpub\AdminScripts path?

Maybe I should just write a C# application that changes the value or my own VBScript and distribute with my own little app instead?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:36:02+00:00Added an answer on May 12, 2026 at 8:36 am

    I worked in JShumaker’s answer to solve the problem. The best route seems to be the following InstallScript function that I call to run a batch script:

    prototype SetIISValues();   
    function SetIISValues()  
        string szProgram, szCmd;
    begin                              
        szProgram = TARGETDIR + "SetIISValues.bat";
        szCmd = "";  
        LaunchAppAndWait (szProgram, szCmd, LAAW_OPTION_WAIT);
    end; 
    

    The batch script calls this:

    @echo off
    cscript.exe SetIISValues.vbs
    

    And the VBScript looks like this:

    Option Explicit
    Dim IIsObject
    Set IIsObject = GetObject("IIS://localhost/w3svc/1")
    IIsObject.Put "Name", "Value"
    IIsObject.Setinfo
    

    Doing it this way relieves the need to use ADSUTIL.VBS as part of the installation – the (relative) path to it is irrelevant if you don’t need to use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any feature in IIS 7 that automatically deletes the logs files older
I have IIS 5.1 on a XP machine, and visual studio 2005. How do
Windows 2003/IIS 6... I have a virtual directory on a web site that closely
I'm on IIS 6 and I have an ASP.Net 4.0 site that's a single
I have an ASP.Net MVC 3 application that uses a jQuery .ajax call to
Is it necessary to restart IIS in order to ensure that changes to azman.xml
I have a WCF service, hosted in IIS 7.0 that needs to run database
I have an innosetup installer that needs to create an IIS Virtual Directory. In
IIS 6.0 generates eTag values in the format of hash:changenumber. The changenumber goes up
In IIS 7 is there a way to edit the forms authentication portion of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.