How to backup and restore IIS configuration using Powershell

Version 2

    Verified Product Versions

    LANDESK Management Suite 9.6LANDESK Management Suite 2016.x

    Description

     

    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.

     

    Backup Configuration

     

    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. 

     

    Restore Configuration

     

    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.