Article ID: 2498915 - View products that this article applies to.
Consider the following scenario:
You may discover that some of your registry hives are abnormally large or “bloated”. Registry hives that are in this state can cause various performance issues and errors in the system log.
There can be many causes for this issue. Troubleshooting the actual cause can be a long and tedious process. In this scenario, you simply want to compress the registry hives to a normal state.
While there may be 3rd party tools available for this scenario, the process listed below could be followed to compress the affected hives.
1) Boot from a WinPE disk. (http://technet.microsoft.com/en-us/library/cc766093(WS.10).aspx
2) Open regedit while booted in WinPe, load the bloated hive under HLKM. (e.g. HKLM\Bloated)
3) Once the bloated hive has been loaded, export the loaded hive as a "Registry Hive" file with a unique name. (e.g. %windir%\system32\config\compressedhive)
a) You can use dir from a command line to verify the old and new sizes of the registry hives.
4) Unload the bloated hive from regedit. (If you get an error here, close the registry editor. Then reopen the registry editor and try again.)
5) Rename the hives so that you will boot with the compressed hive.
c:\windows\system32\config\ren software software.old
c:\windows\system32\config\ren compressedhive software
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.
Article ID: 2498915 - Last Review: March 16, 2011 - Revision: 3.0
Contact us for more help
Connect with Answer Desk for expert help.