can you please share with me if you have any tool/script to check the difference between two "web.config" files.
+1
A:
You can use Compare-Object as follows:
clear-host
$strFile1 = get-Content "C:\config_files_1\web.config"
$strFile2 = get-Content "C:\config_files_2\web.config"
Compare-Object $strFile1 $strFile2
For further information, you may be interested in checking out the following article:
Daniel Vassallo
2010-02-01 07:12:09
will it work with powershell v1.0?
CrazyNick
2010-02-01 08:31:54
Yes, I have just tried it in version 1.0.0.0. It works.
Daniel Vassallo
2010-02-01 08:45:38
Great...Thank you.
CrazyNick
2010-02-01 08:51:47