[This is preliminary documentation and subject to change]

IIS Administration Script Utility (adsutil)

Summary:

This is an IIS administration utility that uses 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.

Usage:

Cscript.exe adsutil.vbs COMMAND <path> [<param>...]

Cscript.exe adsutil.vbs COMMAND [<path> [<parameters>...]]

Commands:

GET PathDisplay chosen parameter.
SET Path ValueAssign a new value.
ENUM path "/P"Enumerate all parameters for the path.
/P - Enumerate the paths only (no data).
ENUM_ALL "/P"Enumerate all parameters.
/P - Enumerate the paths only (no data).
DELETE pathDelete the path or parameter.
CREATE path [KeyType]Create the path and assign it the KeyType.
APPCREATEINPROC PathCreate an in-process application.
APPCREATEOUTPROC PathCreate an out-of-process application.
APPDELETE PathDelete the application (if present).
APPUNLOAD PathUnload an out-of-process application.
APPGETSTATUS PathGet status of the application.
FIND PathFind the paths where a parameter is set.
START_SERVER PathStarts the server.
STOP_SERVER PathStop the Web site.
PAUSE_SERVER PathPause the Web site.
CONTINUE_SERVER PathUnpauses the Web site.
HELPPrints all available commands.

Notes

Examples:

Cscript.exe adsutil.vbs GET W3SVC/1/ServerBindings -s:remotecomputer1

Cscript.exe adsutil.vbs SET W3SVC/1/ServerBindings ":81:"

Cscript.exe adsutil.vbs CREATE W3SVC/1/Root/MyVdir "IIsWebVirtualDir"

Cscript.exe adsutil.vbs START_SERVER W3SVC/1 

Cscript.exe adsutil.vbs ENUM /P W3SVC


© 1997-2001 Microsoft Corporation. All rights reserved.