The AdminScripts tool for IIS uses the full solution _ server
Source: Internet
Author: User
A few days ago in tips to add an old article, is about the "windows2000iis management utility adsutil.vbs use method" oneself to make again, then think under AdminScripts file, there are many VBS tools, It's better to study the remaining 19 tools. Idle also idle, hehe, this bad memory is inferior to bad keyboard, or write down good!
Configure access permissions for the directory
C:\inetpub\adminscripts>chaccess.vbs-a W3svc/1/root-verbose
Usage:chaccess <--adspath|-a adspath> Control configuration Path
[--computer|-c computer1[,computer2 ...]] Specifies the machine name, and IP is also available.
Read permissions under the [+read|-read] home directory
Write permissions under the [+write|-write] home directory
The Execute permission permission under the [+script|-script] home directory is pure script
The Execute permission permissions under the [+execute|-execute] home directory are scripts and executable programs
Directory browsing permissions under the [+browse|-browse] home directory
[--verbose|-v] Current version
[--help|-?]
Displays the properties and status information for the 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 is displayed
Example 1:dispnode-a Iis://localhost/w3svc Displays the main properties of the current IIS
Example 2:dispnode--adspath IIS://MACHINENAME/W3SVC/1 Display status information for the current site
Look 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
Show the specified site path management tree
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> web site path name
<--COMMENT|-T SERVER comment>web Site identification
[--computer|-c computer1[,computer2 ...]]
[--port|-o Port NUM] Ports
[--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] Specifies the server name
<--website|-w website1> Specifies the virtual station Roll Call
<--virtualdir|-v name1,path1,name2,path2,... > Specify 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"
To pause the IIS service for a 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
To restore the IIS service for a 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
Usage ditto
Pauseftp.vbs Pause FTP Server service
Contftp.vbs resumes a paused FTP service
Pauseweb.vbs Pause Web Server service
Contweb.vbs resuming a paused WWW service
Stop the IIS Server service for the specified site
C:\inetpub\adminscripts>stopsrv.vbs-a W3SVC/2
Start the IIS Server service for the specified site
C:\inetpub\adminscripts>startsrv.vbs-a W3SVC/2
Stop the Web Server service for the specified site
C:\inetpub\adminscripts>startweb.vbs-a W3SVC/2
Start the Web Server service for the specified site
C:\inetpub\adminscripts>stopweb.vbs-a 2
Usage ditto
Stopftp.vbs Stop the FTP server service
Startftp.vbs Start the FTP Server service
Tracking execution of scripts
C:\inetpub\adminscripts>synciwam.vbs-h
Usage:cscript Synciwam.vbs [-v|-h]
-V verbose:trace execution of the script
-H help:print This message
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service