Adsutil. vbs basic usage
With this knowledge, let's go back to adsutil. vbs to see its usage:
C:/inetpub/adminscripts> cscript adsutil. vbs
Microsoft (r) Windows Script Host version 5.6
Copyright (c) Microsoft Corporation 1996-2001. All rights reserved.
Usage:
Adsutil. vbs <cmd> [<path> [<value>]
Description:
IIS administration utility that enables the configuration of metabase Properties
Supported commands: // supported commands. This is the most important
Get, set, Enum, delete, create, copy, appcreateinproc, appcreateoutproc, appcreatepoolproc, appdelete, appunload, appgetstatus
Configure Directory Access Permissions
C:/inetpub/admins cripts> chaccess. vbs-A w3svc/1/root-verbose
Usage: chaccess <-- adspath |-A adspath> controls the configuration path.
[-- Computer |-C computer1 [, computer2. ..] specifies the machine name and IP address.
[+ Read |-read] read permission in the main directory
[+ Write |-write] write permission in the main directory
The execution permission in the [+ S privileges |-s privileges] main directory is script-only.
[+ Execute |-Execute] The execution permission in the main directory is script and executable program.
[+ Browse |-browse] directory browsing permission in the main directory
[-- Verbose |-v] current version
[-- Help |-?]
Displays the attributes and status information of a specified path.
C:/inetpub/admins cripts> dispnode help
Usage: dispnode <-- adspath |-A ads path of node> [-- help |-H]
ADS path-the path of the node to be displayed
Example 1: dispnode-a iis: // localhost/W3SVC displays the main attributes of the current IIS
Example 2: dispnode -- adspath IIS: // machinename/w3svc/1 displays the status information of the current site
Search for the named Web and display the node number, description, host name, port, and IP address
C:/inetpub/admins cripts> findweb
Web site number = 1
Web site des cription = default web site
Hostname =
Port = 80
IP address =
C:/inetpub/admins cripts> findweb m7.net
Web site number = 2
Web site des cription = m7.net
Hostname = www.m7.net
Port = 80
IP address = www.m7.net
Displays the Path Management tree of a specified site.
C:/inetpub/admins cripts> disptree. vbs help
Usage: disptree [-- adspath |-a root node] specifies the path to display the management tree
[-- Norecurse |-N]
[-- Help |-?]
Create a WEB virtual site
C:/inetpub/admins cripts> mkw3site help
Unknown argument help
Usage: mkw3site <-- rootdirectory |-r root directory> website path name
<-- Comment |-T server comment> Web site ID
[-- Computer |-C computer1 [, computer2. ..]
[-- Port |-O port num] Port
[-- IPaddress |-I ip address] IP Address
[-- Hostname |-H host name] Host Name
[-- Sitenumber |-N sitenumber]
[-- Dontstart] does not start
[-- Verbose |-v]
[-- Help |-?]
Create a virtual directory for the specified site
C:/inetpub/admins cripts> mkwebdir. vbs help
Usage: mkwebdir [-- computer |-C computer1, computer2] specify the server name
<-- Website |-W website1> specifies the virtual site name.
<-- Virtualdir |-V name1, path1, name2, path2,...> specify the virtual directory name and directory file address
[-- Help |-?]
Example: mkwebdir-C mycomputer-W "Default web site"
-V "dir1", "C:/inetpub/wwwroot/dir1", "dir2", "C:/inetpub/wwwroot/dir2"
Suspend the IIS service of the specified site
C:/inetpub/admins cripts> pausesrv help
Usage: pausesrv <-- adspath |-A server1 [, server2, server3. ..]>
[-- Computer |-C computer1 [, computer2. ..]
[-- Verbose |-v]
[-- Help |-?]
Example 1: pausesrv-A w3svc/1, msftpsvc/2
Example 2: pauseftp-C machine1, machine2, machine3-A w3svc/1, msftpsvc/2
Resume the IIS service of the paused site
C:/inetpub/admins cripts> contsrv. vbs help
Usage: contsrv <-- adspath |-A server1 [, server2, server3. ..]>
[-- Computer |-C computer1 [, computer2. ..]
[-- Verbose |-v]
[-- Help |-?]
Example 1: contsrv-A w3svc/1, msftpsvc/2
Example 2: contsrv-C machine1, machine2, machine3-A w3svc/1, msftpsvc/2
Same as above
Pauseftp. vbs pause the FTP Server Service
Contftp. vbs resume the suspended FTP service
Pauseweb. vbs pause the Web Server Service
Contweb. vbs resume the suspended WWW Service
Stop the IIS server service of the specified site
C:/inetpub/admins cripts> stopsrv. vbs-A w3svc/2
Start the IIS server service of the specified site
C:/inetpub/admins cripts> startsrv. vbs-A w3svc/2
Stop the Web Server Service of the specified site
C:/inetpub/admins cripts> startweb. vbs-A w3svc/2
Start the Web Server Service of the specified site
C:/inetpub/admins cripts> stopweb. vbs-A 2
Same as above
Stopftp. vbs stop FTP Server Service
Startftp. vbs start the FTP Server Service
Tracking Script Execution
C:/inetpub/admins cripts> synciwam. vbs-H
Usage: CS cript synciwam. vbs [-v |-H]
-V verbose: trace execution of the s execution
-H help: print this message