I added an old article in Tips a few days ago about the "Windows2000IIS Management Utility Adsutil. the vbs usage method was re-implemented by myself. Later I thought that there are still many VBS tools in the AdminScripts file. It is better to study the remaining 19 tools. Idle and idle, huh, it's not a good memory, it's better to write down the bad keyboard!
Configure Directory Access Permissions
C: \ Inetpub \ AdminScripts> 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
[+ Script |-script] The execution permission in the main directory is pure script.
[+ 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 \ AdminScripts> 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 \ AdminScripts> findweb
Web Site Number = 1
Web Site Description = default Web Site
Hostname =
Port = 80
IP Address =
C: \ Inetpub \ AdminScripts> findweb m7.net
Web Site Number = 2
Web Site Description = m7.net
Hostname = www.m7.net
Port = 80
IP Address = www.m7.net
Displays the Path Management tree of a specified site.
C: \ Inetpub \ AdminScripts> 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 \ AdminScripts> 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 \ AdminScripts> 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 \ AdminScripts> 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 \ AdminScripts> 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 \ AdminScripts> stopsrv. vbs-a w3svc/2
Start the IIS server service of the specified site
C: \ Inetpub \ AdminScripts> startsrv. vbs-a w3svc/2
Stop the WEB Server Service of the specified site
C: \ Inetpub \ AdminScripts> startweb. vbs-a w3svc/2
Start the Web Server Service of the specified site
C: \ Inetpub \ AdminScripts> 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 \ AdminScripts> synciwam. vbs-h
Usage: cscript synciwam. vbs [-v |-h]
-V verbose: trace execution of the script
-H help: print this message
Miyagi