How To: Compare IIS Configuration Between Two Windows 2008 R2 Servers

Version 3

    Description:

     

    If you suspect an IIS configuration issue between two core servers, on way to quickly identify differences is to export the IIS configuration to a set of files and compare those files using a file comparison tools.

     

    Solution

     

         A. export/backup IIS configuration for IIS 7.5

     

         To export configuration to files on IIS 7.5, you need to use the appcmd.exe tools that is located in the C:\Windows\System32\inetsrv folder.

         To create a backup, run the following command:

     

         appcmd.exe add backup <BACKUPNAME>

     

         <BACKUPNAME> is the name you want to give to your backup folder.

     

         The files will be stored in the folder C:\Windows\System32\inetsrv\backup\<BACKUPNAME>\

     

         B.compare configuration files

     

         a way to compare files is to use an editor like notepad++ ( http://notepad-plus-plus.org/) with the file comparison plugin (http://sourceforge.net/projects/npp-compare/)

     

    com.jpg

     

    Environment:

     

    Any Core server installed on Windows 2008 R2 (IIS 7.5)