http://windowssdk.msdn.microsoft.com/en-us/library/ms525885.aspx
Since I always have a problem remember programmatic syntax for IIS, I decided to put this as a personal reminder.
“
IIS can be configured manually, or programmatically from standalone scripts or applications. The table below provides information about each method of configuring IIS.
The manual methods are as follows:
The programmatic methods are as follows:
IIS can also be configured from Web applications. For information about the different ways to create Web pages, see Comparison of IIS Development Technologies.”