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.

Categories: MicrosoftServer

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Microsoft

Verify Service Status Remotely Using Local Account – PowerShell Script

I have modified one of my previously published script – Stop, Start, Disable Service Remotely–PowerShell Script (http://portal.sivarajan.com/2011/05/stop-start-disable-service.html) to use Local account (instead of a domain account) to verify the status of the service.   Input Read more…

Microsoft

Collect Computer Information From Active Directory– PowerShell Script

This PowerShell script can be used to collect computer information from Active Directory.   I am searching only Windows XP and Windows 7 machines.  You can update these values  by modifying $OS1 and $OS2 variables. $OS1 Read more…

Microsoft

PowerShell – Tips, Tricks and Useful Commands

Tip #4 –   #4                       Tip #3 – Comparison Operators Published date – May12, 2013 -eq   -ne   -gt   -ge   -lt Read more…