Views:

To back up and restore IIS 6:

  1. Open the IIS Manager.
  2. Right-click the machine labeled as Local Computer.
  3. Click All Tasks > Backup/Restore Configuration > Create Backup.

    IIS Manager - All Tasks

  4. Type a name for the backed up configuration and then click OK.

    IIS Manager - Configuration Backup

  5. Click Close.
  6. Open the %windir%\system32\inetsrv\MetaBack directory and copy the created backup to a local folder.

    MetaBack

  7. Reinstall IIS.
  8. Open the local folder and copy the backup file to the %windir%\system32\inetsrv\MetaBack directory.
  9. Open the IIS Manager.
  10. Right-click the machine labeled as Local computer.
  11. Click All Tasks > Backup/Restore Configuration.
  12. Select the backup name and then click Restore > Yes > OK.
  13. Click Close.

To back up and restore IIS 7 or IIS 8:

  1. Open cmd.exe.
  2. Navigate to %windir%\system32\inetsrv\.
  3. Execute following command to back up configuration:

    appcmd.exe add backup <backupname>.

  4. Open the %windir%\system32\inetsrv\backup directory and copy the backup folder to a local folder.
  5. Reinstall IIS.
  6. Open the local folder and copy the backup folder to the %windir%\system32\inetsrv\backup directory.
  7. Execute following command to back up configuration:

    appcmd.exe restore backup <backupname>

    cmd