Share via


Appcmd.exe (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

IIS 7 provides a new command-line tool, Appcmd.exe, to configure and query objects on your Web server, and to return output in text or XML. The following examples are tasks that you can complete with Appcmd.exe:

  • Create and configure sites, applications, application pools, and virtual directories.

  • Start and stop sites.

  • Start, stop, and recycle application pools.

  • View information about worker processes and requests that are running on the Web server.

Appcmd.exe provides consistent commands for common queries and configuration tasks, which reduces the complexity of learning syntax. For example, you can use the list command to search for information about an object, such as an application, or you can use the add command to create an object, such as a site.

Additionally, you can combine commands together to return more complex data about objects on your Web server or to perform tasks that are more complex. For example, you can complete complex tasks like stopping all sites that have requests that have been running longer than sixty seconds.

This section contains the following content:

Start Appcmd.exe (IIS 7)

Get Help About Appcmd.exe (IIS 7)

Working With Objects in Appcmd.exe (IIS 7)

Working With Commands in Appcmd.exe (IIS 7)

Working With Attributes and Values in Appcmd.exe (IIS 7)

Configure Server-Level Settings by Using Appcmd.exe (IIS 7)

Configure Settings for a Site, Application, Virtual Directory, or URL by Using Appcmd.exe (IIS 7)

See Also

Concepts

IIS Administration Tools (IIS 7)