您可以使用内置的 Windows注册表编辑器 (regedit)(Registry Editor (regedit))手动更改注册表(Registry)项值,以提高性能或使 Windows 按您想要的方式工作,但您需要知道您在做什么,否则您可能会严重损坏您的操作系统。在这篇文章中,我们将向您展示修复或修复Windows 11和Windows 10中损坏或损坏的注册表(Registry)的最安全和推荐的方法。
通常,如果您使用注册表编辑器进行一些更改,(Registry Editor)注册表(Registry)会损坏。有时(Sometimes),恶意软件感染或磁盘(Disk)问题也可能最终损坏注册表文件。这就是为什么建议您在更改任何内容之前备份您的注册表(backup your registry),因为您拥有Windows 10系统的所有内部设置。
注册表错误有几个常见原因。有些值得担心,有些则不值得担心。
- 孤立的条目。(Orphaned entries.) 当您卸载软件并留下注册表项的小片段时,会出现孤立的条目。注册表清理软件(Registry cleaner software)通常会声称这是一个直接的问题,但实际上,它们只会占用您磁盘上几千字节的可用空间。
- 重复键。(Duplicate keys.) 当您重新安装、升级或更新计算机上的软件(包括操作系统)时,会生成重复的密钥。(Duplicate)注册表(Registry)清理软件会声明您的程序会被重复的条目弄糊涂,从而降低您机器的性能,但事实并非如此。
- 分散的注册表。(Fragmented registry.)当软件被卸载、升级或更新时,注册表也可能出现碎片。注册表碎片整理(Registry defragmenters)程序声称对注册表进行碎片整理。
- 系统关机错误。(System shutdown errors.)每次您的计算机关闭时,注册表的副本都会保存到系统内存中。如果您的计算机在没有通过正常关机例程的情况下关闭、崩溃或死机,则将来可能会导致问题,但这不太可能。
- 恶意软件。(Malware.) 许多类型的恶意软件攻击可以修改注册表。特别是,恶意软件通常被设计为更改启动键的值,因此每次重新启动 PC 时都会激活它。恶意软件对注册表的更改需要立即引起注意(Changes to the registry by malware require immediate attention)。
如您所知,注册表问题意味着您的操作系统存在问题,因此您最终可能会在使用设备时遇到困难。在大多数情况下,当注册表损坏时,必须重新安装Windows 操作系统(Windows OS),这意味着您将丢失所有数据。
修复(Fix)Windows 11/10中损坏或损坏的注册表(Registry)
我们应该指出以下几点:
- 曾经有一个原生的Windows 操作系统(Windows OS) 注册表检查工具 (scanreg.exe)(Registry Checker Tool (scanreg.exe)),它可以在操作系统启动时快速扫描系统注册表中的无效条目和空数据块。不过早就停产了
- 不建议(NOT)使用任何第三方注册表清理工具。微软表示,这些实用程序最终可能会损坏注册表。
如果您有最近的注册表(Registry)备份,请使用它(use it)。如果您有最近的系统还原点(Restore Point),请还原您的系统。如果没有,请继续阅读。
因此,如果您需要修复Windows 10中损坏或损坏的注册表,您可以尝试以下任何推荐的方法:
- 执行 SFC 扫描
- 执行 DISM 扫描
- 执行系统还原
- 重置 Windows 10
- 执行自动启动修复
- 执行(Perform)Windows 10 就地升级修复(Upgrade Repair)
让我们看看这些方法的描述。
1]执行SFC扫描
有时Windows系统文件的损坏会损坏注册表项,因此建议首先在Windows中(Windows)运行SFC(系统文件检查器)来修复损坏的系统文件。更好(Better)的是, 以安全模式、启动时间或离线运行系统文件检查器。
2]执行DISM扫描
在某些情况下,运行SFC扫描无法帮助您修复Windows 11/10中的注册表错误,您可以尝试运行 DISM(部署映像服务和管理)(running the DISM (Deployment Image Servicing and Management))命令行工具。
阅读(Read):Windows\System32\config\SYSTEM is missing or corrupt。
3]执行系统还原
在不太严重的情况下,恢复系统可以帮助解决Windows 11/10上的注册表错误。
阅读(Read):如何修复 Windows 中损坏的系统文件
4]重置Windows 11/10
此解决方案允许您重置您的 PC,而不会影响任何文件。这将完全刷新Windows系统文件并修复Windows注册表。您可以使用 Settings(use the option in Settings)或Cloud Reset中的选项。
5]执行自动启动修复
运行自动启动修复(Running the automatic startup repair)也适用于修复注册表错误和清理Windows 11/10中的注册表。
6]执行Windows就地升级修复(Perform Windows In-place Upgrade Repair)
Windows 就地升级修复是另一种可以修复Windows操作系统中损坏或损坏的注册表的解决方案。
希望这篇文章对您有所帮助。
阅读下一篇(Read next):如何在 Windows 中修复损坏的组策略。
How to repair or fix corrupt Registry in Windows 11/10
You can change Registry key values manually using the built-in Windows Registry Editor (regedit) in order to improve performance or make Windows work the way you want, but you need to know what you’re doing or you can seriously damage your OS. In this post, we will show you the safest & recommended ways to fix or repair a corrupted or damaged Registry in Windows 11 and Windows 10.
Usually, the Registry gets corrupted if you make some changes using the Registry Editor. Sometimes, malware infection or Disk issues can also end up corrupting the registry file. That’s why it is more than recommended to backup your registry before changing anything as there you have all the internal settings of your Windows 10 system.
There are several common causes of registry errors. Some are worth worrying about, and others are not.
- Orphaned entries. Orphaned entries occur when you uninstall software and small fragments of registry entries are left behind. Registry cleaner software will often claim these are an immediate issue, but in reality, they will just use up a few kilobytes of free space on your disk.
- Duplicate keys. Duplicate keys are made when you reinstall, upgrade, or update the software on your machine, including the operating system. Registry cleaner software will state that your programs will be confused by the duplicate entries, slowing the performance of your machine, but that is not true.
- Fragmented registry. The registry can also fragment when the software is uninstalled, upgraded, or updated. Registry defragmenters claim to defrag the registry.
- System shutdown errors. Each time your computer shuts down, a copy of the registry is saved to system memory. If your computer is turned off, crashes, or dies without going through the normal shutdown routine, it could cause an issue in the future, but this is unlikely.
- Malware. Many types of malware attacks can modify the registry. In particular, malware is regularly designed to change the values of startup keys so it will be activated each time you restart the PC. Changes to the registry by malware require immediate attention.
As you can tell, a problem on the registry means a problem on your OS, thus you can end up having difficulties in using your device. In most of the cases, when the registry gets corrupted, the Windows OS must be reinstalled which means that you are losing all of your data.
Fix corrupt or damaged Registry in Windows 11/10
We should point out the following:
- There used to be a native Windows OS Registry Checker Tool (scanreg.exe) that quickly scanned the system registry for invalid entries and empty data blocks when the OS is started. But it has long been discontinued,
- It’s NOT recommended to use any third-party registry cleaner. These utilities could end up damaging the registry, says Microsoft.
If you have a recent Registry backup, use it. If u have a recent System Restore Point, then restore your system. If not, then read on.
So, if you ever need to repair a corrupted or damaged registry in Windows 10, you can try any of the following recommended methods:
- Perform SFC scan
- Perform DISM scan
- Perform System Restore
- Reset Windows 10
- Perform Automatic Startup Repair
- Perform Windows 10 In-place Upgrade Repair
Let’s see a description of these methods.
1] Perform SFC scan
Sometimes the corruption of the Windows system files can corrupt registry entries, so here it is recommended to very first run SFC (System File Checker) in Windows to repair corrupt system files. Better still, run System File Checker in Safe Mode, Boot Time, or Offline.
2] Perform DISM scan
In some cases where running the SFC scan won’t help you to fix registry errors in Windows 11/10, you can try running the DISM (Deployment Image Servicing and Management) command-line tool.
Read: Windows\System32\config\SYSTEM is missing or corrupt.
3] Perform System Restore
In less severe cases, restoring your system can help resolve registry errors on Windows 11/10.
Read: How to fix corrupted system files in Windows
4] Reset Windows 11/10
This solution allows you to reset your PC and without affecting any files. This will completely refresh the Windows system files and repair the Windows registry. You may use the option in Settings or Cloud Reset.
5] Perform Automatic Startup Repair
Running the automatic startup repair works as well in fixing registry errors and cleaning the registry in Windows 11/10.
6] Perform Windows In-place Upgrade Repair
The Windows In-place Upgrade Repair is another solution that can repair corrupt or damaged registry in Windows operating system.
Hope you find this post helpful.
Read next: How to repair a corrupt Group Policy in Windows.