大网数据广告活动
性能与资源

Compress large registry hives

· 52CE 我爱测

Describes how to compress large registry hives.

This article describes how to compress large registry hives to avoid performance issues.

Original KB number:   2498915

Symptoms

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.

Cause

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.

Resolution

While there may be third-party tools available for this scenario, the process listed below could be followed to compress the affected hives.

  1. Boot from a WinPE disk. (What is Windows PE)
  2. Open regedit while booted in WinPe, load the bloated hive under HLKM. (for example, HKLM\Bloated)
  3. Once the bloated hive has been loaded, export the loaded hive as a "Registry Hive" file with a unique name. (for example, %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'll boot with the compressed hive. For example,
    c:\windows\system32\config\ren software software.old
    c:\windows\system32\config\ren compressedhive software

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。