IIS server: how to dump IIS configuration into a single file

IIS7's configuration data is stored in a bunch of XML config files in:

%SYSTEMROOT%\System32\inetsrv\config

There are still some settings that are registry bound and they can be found under:

HKLM\Software\Microsoft\InetStp\Components

and

HKLM\Software\Microsoft\WebManagement\Server

The approved way of backing up IIS7's configuration is by using the APPCMD BACKUP command. You can find out more about this command by running APPCMD BACKUP /? from an Administrator command prompt.

You can find out more about APPCMD BACKUP here:

Getting Started With APPCMD.EXE - Managing Backups