Home  >  Article  >  10 Ways to Fix Corrupted Registry Keys in Windows 11: A Step-by-Step Guide

10 Ways to Fix Corrupted Registry Keys in Windows 11: A Step-by-Step Guide

WBOY
WBOYforward
2023-05-15 16:10:068184browse
  • Click to enter:ChatGPT tool plug-in navigation directory

Ordinary Windows users may never have to access the Windows registry, but various applications and Windows services do need. If a registry key goes bad, you will experience various issues such as higher CPU usage, random system crashes, extended startup and shutdown times, and sub-par global performance. Needless to say, the registry must remain functioning properly.

What is the Windows Registry?

The Windows Registry is a system-wide repository of files and settings that stores important information about Windows, user preferences, applications, hardware, and many other important components that make up your personal computer.

This data is stored in "keys" and "values" (the two basic components of the registry) and is referenced by Windows when needed.

Missing, infected, incorrectly changed or corrupted registry keys can affect your PC in many ways and should be avoided entirely.

What causes corrupted registry keys?

There are many factors that can cause registry keys to become corrupted. Here are some common ones:

1. Viruses and Malware:Perhaps the most common cause of corrupted registry keys, a malware infestation can corrupt multiple keys and values ​​simultaneously, and Affects the functionality of all settings that depend on them.

2. Fragmentation: Over time, registry fragmentation can also break certain items, especially after installing software or updating software and services.

3. Registry Interference: Inappropriate changes to the registry via the Registry Editor can also eventually corrupt registry entries, especially without the proper knowledge or information Change what is happening.​

4. Item accumulation: Over time, your registry may end up with a large number of corrupted, unnecessary, completely empty, or misplaced items. This not only harms other functional registry keys but also clogs your system and damages it internally.

How to Fix Corrupted Registry Keys on Windows 11 (10 Ways Explained)

If your system is slowing down, taking longer to boot/shutdown, crashes occasionally, or if If errors appear around every corner, your registry key may be corrupted. Here are a few ways to fix them.

Method 1: Run a System File Checker (SFC) scan

Native System File Checker is designed to repair corrupted and missing system files, including files in the registry. Here's how to use it:

Press Start, type

cmd, right-click Command Prompt, and select Run as administrator . This will open the command prompt tool for you.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Here, type the following command:

sfc /scannow

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press Enter. Wait for the scan to complete.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

You should receive a message stating that Windows Resource Protection found corrupt files and successfully repaired them.

If the message you receive says otherwise, please proceed to the next few fixes.

Method 2: Run the DISM Tool

The second method to use when repairing a corrupted project is to use the Deployment Image and Services Management (DISM) tool to scan for the problem. Here's how to do it:

Open the command prompt as shown before. Then type the following command:

DISM /Online /Cleanup-Image /ScanHealth

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

and press Enter. Wait for the scan to complete.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then enter this command:

DISM /Online /Cleanup-Image /RestoreHealth

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press Enter.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Once completed, restart your PC and check if system functionality has improved.

Method 3: Run the Disk Cleanup Tool

Disk Cleanup is a native tool that can help clean up system files and unclog registry entries. Here's how to use it:

Press Start, type Disk Cleanup, and open the application.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now, select drive "C:" (default selection) and click "OK".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#In the Disk Cleanup window you will find a bunch of files that you can delete to save space. But we want to clean up the system files, so select Clean up system files in the lower left corner.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Select the C: drive again and click OK.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Wait for the scan to complete.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#You will see checkmarks next to files that Disk Cleanup recommends you clean. Click "OK" to confirm.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click Delete file again.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

# Restart your computer after the cleanup is complete, and there should be fewer registry files clogging the system.

Method 4: Run Startup Repair

Startup Repair is another option built into the Windows recovery environment that can help diagnose and resolve system problems, including corrupted registry files. The access method is as follows:

Press the shortcut key combinationWin I to open the "Settings" app. With System selected in the left pane, scroll down and select Recovery.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Next to Advanced Startup, click Restart Now.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

The computer will now restart and boot into the Windows Recovery Environment. Click Troubleshooting to get started.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click Advanced Options.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click Start Repair.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Windows will now run Startup Repair, resolve the issue, and apply the solution.

Method 5: Perform a System Restore

If corrupted registry keys are affecting your ability to use Windows, you may have to resort to System Restore and roll back your settings to a time when they worked properly a certain point. The operation method is as follows:

Press "Start", type "Create Restore Point", and then click "Create Restore Point".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click System Restore.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now, select the Recommended restore option and click Next.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Otherwise, if you want to choose a different restore point, select Select a different restore point and click Next.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Check the box next to Show more restore points.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now select the event you want the system to recover from. Then click "Next".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

(Note: You can click "Scan for affected changes" to see the software that System Restore will remove. Once System Restore, you will have to reinstall these software.)

Finally, click Finish to start system restore.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Any corrupted items that may have been introduced after this date or event will be removed from the registry.

Method 6: Use a third-party application (CCleaner)

Registry cleaning tools such as CCleaner, Restoro and Wise Registry Cleaner have received a lot of criticism in the past, especially from Microsoft, which Indicates that it does not support the use of registry cleaning utilities. However, if the native tools don't work, you can rely on these tools in most cases as long as you are careful.

Because the possibility of improperly deleting or changing registry files is high, it is recommended that you manually back up the registry before starting. But since most of these third-party registry cleaners already prompt you to do the same thing, we can move on to the applications themselves. For our example, we're using CCleaner, but the options are more or less the same for most such applications.

Download: CCleaner

Go to the link above and click "Download".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Follow the on-screen prompts to install CCleaner.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then open the application and go to the "Registry " tab.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then select the items you want to scan (it's best to select them all) and click Scan for Issues.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Wait for the scan to complete, then click Review selected Issues.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

CCleaner will prompt you to make a registry backup before making any changes. Clean is .

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Select a location to save the registry backup and click Save.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#For each registry issue, you will see a pop-up window that allows you to review it in advance. To resolve this issue, click Fix the problem.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

To fix all issues at once, click Fix all selected issues.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

After the problem is resolved, restart your computer.

Method 7: Restore Registry Backup

If you have a registry backup, you can use it to restore your registry settings at any time. But this method only works if you already have a registry backup. To learn more about creating a registry backup, check out the final sections of this article.

The following is how to restore the system using registry backup:

Press "Start", type "Registry Editor" and open it.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click File.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Select Import.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Browse for the registry backup file (files ending in .reg), select it, and click Open.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Waiting for the registry to be restored.

Method 8: Reset your PC

If the above solutions don’t work, there may be a long-standing problem with the registry key that cannot be easily fixed. In this case, it helps to reset your PC and restore Windows to default settings. Here's how:

Press Start, then click the Power button.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then while holding down the Shift key, click Restart.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

This will boot you into the Windows Recovery Environment. From here, select Troubleshoot.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then click Reset this computer.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Choose to keep your files or delete everything.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then follow the on-screen prompts to continue resetting your computer.

Method 9: Reinstall Windows

When all else fails, reinstalling can feel like a failure. But reinstalling will give you a clean copy of Windows, allowing you to start over and better manage registry keys. You will need a bootable USB for this to work.

Plug in the USB and reboot the system in the Windows Recovery Environment (as in the previous method). Select Troubleshooting.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click Advanced Options.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Select UEFI Firmware Settings.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click Restart.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press the corresponding key to select the Boot device option.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#Use the arrow keys to select your USB device. Then press Enter.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

After Windows Setup starts, click "Next".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#Now follow the on-screen prompts to reinstall Windows.

Method 10: Check if Registry Editor is allowed in Group Policy Editor

Note: This method only applies to Windows 11 Pro, Enterprise, and Education editions.

If you cannot access the Registry Editor, you must seek help from the Group Policy Editor.

Please note that the Group Policy Editor is only available in Windows Professional, Enterprise, and Education editions.

Here’s how to check whether the Registry Editor is allowed through the Group Policy Editor.

Press Start, type gpedit and open Edit Group Policy.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

In the left pane, expand User Configuration, then expand Administrative Templates, and click System.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Find Block Access to Registry Editing Tool on the right and double-click it.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now, make sure the Not Configured or Disabled option is selected.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then click "OK".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

# Restart your PC to take effect and your Registry Editor will be enabled.

Maintaining Registry Backups

Once your system is back to normal, it is important to ensure that your PC starts maintaining registry backups if it does not already have one. Creating registry backups from time to time ensures that you have a previous snapshot to restore in case the registry and its items become corrupted again in the future. The method to back up the registry is as follows:

1. Create a registry backup

First, let’s see how to create a registry backup yourself.

Press Start, type registry editor, and then open the Registry Editor.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click File.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Select Export.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#Name your backup and save it somewhere safe (such as a USB or external hard drive).

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then click Save.

2. Enable automatic registry backup (and how to restore the registry with it)

In previous versions (version 1803 and earlier), Windows used to automatically create a secret backup , someone can access the backup if they wish. However, its use has since been discontinued. Still, with a few tweaks, you can enable it yourself and access it later, just in case something happens again.

First, here’s how to enable automatic registry backup of registry keys:

Open the Registry Editor (as shown previously). Then enter the following path:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager

Alternatively, copy the above and paste it into the registry into the editor's address bar and press Enter.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now, right-click the Configuration Manager folder on the left, select New, and click DWORD (32-bit) Value.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Name the newly created registry key EnablePeriodicBackup.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Double-click it and change the value to 1. Click OK.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Restart the system for the changes to take effect. Once launched, go to the following address and check if it is populated with files.

C:\Windows\System32\config\Regback

Initially, you may see that the file sizes in the folder are all "0 KB".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

But don’t worry. This will be updated when automatic maintenance occurs, approximately every 10 days.

If you want to back up the registry immediately, you must use the "Task Scheduler". Here's how to do it:

Press Start, search for task scheduler, and press Enter.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

In the left pane, expand Task Scheduler Library.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#And then Microsoft.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Expand the window.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then select Registry.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#You should see a "RegIdleBackup" file on the right.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Right click on it and select Run.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now if you go back to the "RegBack" folder you should see that the size of the file has been updated.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

#Now let’s see how to use this backup to restore the corrupted registry keys in sequence.

Press Start and click the power button.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Then hold down the "Shift" key and click "Restart".

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

This will open the Windows Recovery Environment. Here, click Troubleshooting.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Select Advanced Options.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Click Command Prompt.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Here we will enter the drive letter where Windows is installed. The default drive letter for Windows is C. However, this may be different for some people, especially when done from the command prompt in a Windows recovery environment. Recovery mode does not always show the default drive (C:) as the drive where Windows is installed.

To check if this is the case, type C:, press Enter, then type dir and press Enter to see the contents of that drive. If you find that it has folders like “Program Files”, “Windows”, etc., then you are on the right track.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

If not, make sure to try a few different letters followed by the dir command. In our case, it's the default letter C: itself.

After selecting the correct drive, type the following command:

cd C:\Windows\system32

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press the Enter key. Then type the following command:

mkdir configBackup

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

This command is used to create a backup folder that can temporarily back up "config" files in the folder. Press the Enter key. Then type the following:

copy config configBackup

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press Enter. This will move the files from the temporary folder to the "configbackup" folder.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

After you see that the file has been copied, type the following command:

cd config\Regback

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press the Enter key. We have now moved the path to the secret registry backup folder. Type the following to check the contents and size of each file:

dir

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

## Press Enter. Make a note of the name of the file here.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now enter the file name and press enter for each file one by one as shown below:

copy /y software ..

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press the Enter key.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Now type the following:

copy /y system ..

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Press the Enter key.

修复 Windows 11 中损坏的注册表项的 10 种方法:分步指南

Again, do this for all the files highlighted previously. Once completed, close the command prompt and restart Windows. This should restore your registry files using the automatically backed up registry files.

The above is the detailed content of 10 Ways to Fix Corrupted Registry Keys in Windows 11: A Step-by-Step Guide. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete