Configuration Editor teaches you how to write IIS7 scripts
The IIS7 configuration system is pretty complex even though it is plain xml. Writing code or scripts to make configuration changes usually requires a bunch of trial and error. But not anymore! The IIS7 Admin Pack includes a configuration editor that shows you how to make configuration via Microsoft.Web.Administration (the IIS7.NET configuration API), via AHAdmin (the scriptable COM interface Microsoft.Web.Adminstration uses under the covers) and APPCMD (the IIS7 command-line tool).
Here is how:
Click the "Configuration Editor" feature and select a configuration section of your choice.
Make a change.
Select the "Generate Script" Action on the right hand side. Voila.