Introduction to IIS-related commands and tools in Windows

Source: Internet
Author: User
1. Net start/stop w3svc
This command is mainly used to enable/stop the WWW Service.
This command is used to start or stop WWW Service. It commonly uses to reset W3SVC after the IIS configuration is modified.
Notes: Do not mix W3SVC with a website. If net stop W3SVC is enabled, all websites on the server are stopped. Of course, we can also stop a website. This is the next command.

2. iisweb.

This command is used to control all website-related operations, such as create website, delete website, stop/pause website. Description: start, stop, pause, delete, query, or create a web site
Iisweb [/S <Server> [/u <username> [/P <password>]/<operation> [arguments]
Value description
/S <Server> connect to machine <Server> [Default: This system]
/U <username> connect as <domain >\< username> or <username> [Default: current user]
/P <password> password for the <username> User
<Operation>/start starts a site (s) on given IIS server.
/Stop stops a site (s) from running on a given IIS server.
/Pause pauses a site (s) that is running on a given IIS server.
/Delete deletes IIS configuration from an existing web site. content will not be deleted.
/Create creates a web site.
/Query queries existing web sites.
For detailed usage:
Iisweb/start /?
Iisweb/Stop /?
Iisweb/pause /?
Iisweb/delete /?
Iisweb/create /?
Iisweb/query /?
For example:
I want to create a website named Putuo with the port number 80 and IP address The apppool used is myapppool, and the file is located in c: \ inetput \ wwwroot \ Putuo.
Syntax is as follows:
Iisweb/create c: \ inetput \ wwwroot "putup"/I 80/AP Putuo

3 iisapp
This command mainly targets some apppool operations.

Description: List IIS application pools and associated worker processes. Recycle application pools.

Iisapp. vbs [{/A <app_pool_id> |/P <pid >}[/R]
Value description
/A <app_pool_id> specify an application pool by name. Surround <app_pool_id> with quotes if it contains spaces.
If used alone without an accompanying action,
Iisapp. vbs will report PIDs of currently running
W3wp.exe processes serving pool <app_pool_id>.
/P <pid> specify a process by process ID. sort f used alone
Without an accompanying action, iisapp. vbs will
Report the apppoolid of the w3wp process specified
By <pid>. When a PID is specified with/R, that PID
Is mapped to an application pool and the action is
Taken upon the application pool. sort f a PID is given
For a web garden, I. e. An application pool served
By more than one w3wp, then all w3wp mandatory for that
Application pool will be acted.
/R recycles the application pool.

Default: no switches will print out the PID and apppoolid.

Iisapp/P 2368
Iisapp/A defaultapppool/R
Iisapp/P 2368/R

4 iisback
This command is mainly used to execute backup and restore operations on the IIS configuration file.
C: \ windows \ system32> iisback/backup /?
Description: backup the IIS server (des all site data
And settings ).

Syntax: iisback [/S <Server> [/u <username> [/P <password>]
/Backup [/B <backupname>] [/V <versionnumber>]
[/E <backuppassword>] [/overwrite]


Value description
/S <Server> connect to machine <Server>
[Default: This system]
/U <username> connect as <domain >\< username> or
<Username> [Default: current user]
/P <password> password for the <username> User
/B <backupname> description for the backup file.
[Default: "samplebackup"]
/V <versionnumber> specifies the version number to be
Assigned to the backup. can be any
Integer, highest_version, or
Next_version. [Default: next_version]
/E <backuppassword> encrypt the backup file with
Provided Password
/Overwrite back up even if a backup of the same
Name and version exists in
Specified location, overwriting if
Necessary. [Default: Disabled]


Iisback/s server1/u administrator/P @ ssw0rd/backup/B newbackup

5 iisvdir
This command is mainly used to create/delete/query virtual directories.
Description: Create, delete, or query a web directory

Syntax: iisvdir [/S <Server> [/u <username> [/P <password>]
/<Operation> [arguments]


Value description
/S <Server> connect to machine <Server>
/U <username> connect as <domain >\< username> or
<Username> [Default: current user]
/P <password> password for the <username> User
<Operation>/create creates a WEB virtual directory
On a specified web site.
/Delete deletes a WEB virtual directory
From a specified web site.
/Query lists all virtual directories
Under the specified path.

For detailed usage:

Iisvdir/create /?
Iisvdir/delete /?
Iisvdir/query /?


Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

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: and provide relevant evidence. A staff member will contact you within 5 working days.