Working out how YOUR 12 Hive is different

Table of Contents

So I often get the issue where I remote desktop into a server and want to know what is different from baseline install. I used to simply go into main folders such as Features and sort by date modified, but as patches have come along it is sometimes harder. Some file names make it obvious it's different like "Bob's feature"...but here is a "smarter" way.

  • Make sure Powershell is on your environment
  • Run the following script on the server
    $Path = "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12"
    get-Childitem $Path -recurse | Select-Object name, creationtime, directory | export-csv "C:\12hive.txt"
    
  • Copy the generated text file from "C:\12hive.txt" to your local machine. Typically, on my host machine I will do 'Start | Run' and access the file system that way as there is too much text to copy and paste due to ~25Mb file!
  • Now you just need to grab one of the txt files attach to this page which are baseline RTM, SP1, SP2 hives to see what is different by using a File Diff tool like BeyondCompare by Scooter Software
Watch out for datetime diffs
You may get lots of line differences due to datetime diffs, that's why I always tend to run this on a machine as a baseline and keep a copy You need to see the ones that have different datetimes because they may be modifying an existing 12 hive file! yuk!
Log files
Also you might want to delete the log file entries in your generated file too
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.


  1. Jul 08, 2009

    Alex Angas says:

    That's a good solution if you don't have a base install on the same network to c...

    That's a good solution if you don't have a base install on the same network to compare with.

    If you do however I prefer to use something like WinMerge (or perhaps the other tools you've mentioned) as it can do directory and file comparisons. I've needed to do this several times across the network. It's pretty easy to use although the default colours drive me nuts.


Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. Hosted generously by CustomWare