This document outlines how to backup and restore the IIS configuration using Powershell. This can also be used for restoring a corrupted IIS configuration using a known good server as the source.
The following command is used in Powershell to backup the IIS Configuration
PS> Backup-WebConfiguration -Name IISConfigBackup
This will create a subfolder in the \System32\instsrv\backup folder with your configuration files.
The following command is used in Powershell to backup the IIS configuration.
PS> Restore-WebConfiguration -Name IISConfigBackup
You can run "Powershell" from the command prompt or run "Powershell ISE" for a GUI version.