adsutil.vbs

How to find relative path to C:\Inetpub\AdminScripts\ADSUTIL.VBS?

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...

Get IIS Web Site identifier programmatically

I'm trying to use adsutil in an installation script of a web app I am installing on IIS 6.0 to set access control. There is a command that works as follows: adsutil.vbs set w3svc/1/root/Authflags 4 This is the command for the default web site, as its Identifier is 1. However, new web apps are given a generated Identifier. In my cas...

How can I set global mime-types for IIS6 programmatically?

Currently I am able to to set a mime type with adsutil.vbs for the primary web site on IIS6 with the following syntax: cscript adsutil.vbs set W3SVC/1/Root/MimeMap ".manifest, text/cache-manifest" This seems to work fine when I only need to target W3SVC/1. I need to write an update script that will make sure that any sites on a given...