Most Important AppCmd Commands

Usually, a day doesnt go by that I dont get a collegue or a partner team in Microsoft asking how to do something or other about AppCmd.exe, the unified command line management tool for the IIS7 server.  Since its inception in the fall of 2005, the tool has been becoming increasingly popular internally - IIS7 setup code, stress and performance automation scripts, and many of Windows partner teams rely on AppCmd to perform IIS7 setup, configuration, and management tasks.  Since another IIS developer and I wrote the tool, we (or actually mostly I) constantly get bombarded by requests to give people commands to do what they want. 

For a while, I've been thinking about blogging about the most commonly used commands to assist people get going with managing IIS7 from the command line - and so the "Most Important AppCmd Commands" post series was born.

Before I jump into the first post, here are some good resources that should be your first stop whenever you need to use AppCmd:

  1. AppCmd command line help. 

    The tool comes with detaled built-in help that describes every object and command supported by the tool.  When in doubt:

    AppCmd /?
    Display the objects supported by appcmd.

    AppCmd Site /?          
    Display the command supported by the "Site" object.

    AppCmd Add Site /?  
    Display the parameters and examples for using the "Add" command on the "Site" object.

  2. AppCmd online guide: http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=954&p=1

    This guide describes the most important parts of AppCmd, and is a good way to discover functionality as well as see examples of its usage.

Without further ado, here is the first post in this series - Backing up and restoring IIS7 configuration.

Published 18 March 07 07:56 by Mike Volodarsky
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# ASP.NET Debugging said on April 1, 2008 9:38 AM:

So with IIS7, there is a new way to get data out about your web server, using the new appcmd.exe process.

# IIS 7.0 Server-Side said on May 14, 2008 2:52 PM:

After almost 5 years at the company, I am both sad and excited to say that I’ll be leaving the

# MVolo's Blog said on May 14, 2008 7:33 PM:

After almost 5 years at the company, I am both sad and excited to say that I’ll be leaving the IIS team and Microsoft at the end of this week. Looking back, I can say that my experience at Microsoft has been truly amazing

Leave a Comment

(required) 
(optional)
(required) 
Enter the code you see below


About Mike Volodarsky

For the past 5 years, I was the core Program Manager for Microsoft ASP.NET 2.0 and IIS 7.0 products. I drove the design and development of the IIS 7.0 web server core, the IIS FastCGI support, the AppCmd command line tool, the ASP.NET Integrated pipeline, and other special projects around server security, performance, and scalability. Now, I am working on my own on cutting edge web server tech on top of the Microsoft IIS platform, and continue blogging about it here.

About me



For the past 5 years, I was the core server Program Manager for the IIS 7.0 and ASP.NET 2.0 products at Microsoft.
Now, I work on advanced web server tech using IIS 7.0, .NET, and Windows Server 2008 and write about it in this blog.

View Michael Volodarsky's profile on LinkedIn

Writings



TechNet Magazine
>Top 10 Performance Improvements in IIS 7.0

MSDN Magazine
>IIS 7.0: Build Web Server Solutions with End-To-End Extensibility
>IIS 7.0: Enhance Your Apps with the Integrated ASP.NET Pipeline
>IIS 7.0: Explore The Web Server For Windows Vista And Beyond
>Design and Deploy Secure Web Apps with ASP.NET 2.0 and IIS 6.0
>Fast, Scalable, and Secure Session State Management for Your Web Applications


Tools and Modules

LeechGuard
IconHandler 2.0
DirectoryListing
HttpRedirection
IIS Auth for Wordpress
iisschema.exe
PortCheck.exe v2.0

Popular Posts

- ASP.NET 2.0 Breaking Changes on IIS 7.0
- Develop IIS7 modules and handlers with .NET
- Troubleshoot IIS7 errors like a pro
- Troubleshooting 503 / "service unavailable" errors
- Troubleshooting "server not found" errors
- Create IIS7 sites, applications, and virtual directories
- Run Ruby on Rails with IIS FastCGI
- VS Debugging of ASP.NET applications on Windows Vista
- Stop hot-linking with IIS and ASP.NET

Tags

Search

Go

This Blog

Archives

Good IIS Blogs

Disclaimer

These postings are provided as is with no warranties, and confer no rights. The views expressed in this blog are entirely my own.

Syndication