Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compare if the configuration is different for IIS?

Tags:

iis-7

Suppose I have IIS running on 2 different computers, I want to know if the 2 IIS configurations are different. How can I compare the configuration settings on different IIS Web Servers?

like image 561
KentZhou Avatar asked Mar 20 '12 13:03

KentZhou


People also ask

What is IIS and its configurations?

Internet Information Services (IIS) 7 and later use an XML-based configuration system for storing IIS settings which replaces the metabase that was used in IIS 6.0 and earlier. This new configuration system was introduced with ASP.NET and is based on a hierarchical system of management system that uses *. config files.


1 Answers

Compare IIS configuration files located in C:\Windows\System32\inetsrv\config directory.
OR
If you use WebDeploy tool:

msdeploy.exe -verb:sync -source:webServer,computername=YourSourceMachine -disableLink:ContentExtension -dest:webServer,computername=YourDestinationMachine -whatif > c:\sync.log

In c:\sync.log file you will see what would take to synchronize IIS configuration from YourSourceMachine to YourDestinationMachine. Because -whatif parameter is provided it will only symulate synchronization process.

like image 188
Tomek Avatar answered Sep 20 '22 13:09

Tomek