10 ways to fix broken registry items in Windows 11: Step-by-step guide

The average Windows user may never have to access the Windows Registry, but a variety of applications and Windows services do. If the registry items have gone bad, you will experience a variety of problems such as higher CPU utilization, random system crashes, extended startup and shutdown times, and sub-par global performance. Needless to say, it’s imperative that the registry stays in working order.  

Here’s everything you need to know about fixing registry items in Windows 11, creating registry backups, and a few tips on system maintenance. 

What is 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 a host of other critical constituents that make up your personal computer.

This data is stored within ‘key’ and ‘values’ – the two basic components of the registry – and is referenced by Windows whenever needed. 

Registry items that go missing, are infected, altered wrongly, or are otherwise broken can impact your PC in a number of ways, and should be avoided altogether.

What can lead to broken registry items?

There are a number of factors that can lead to broken registry items. Here are a few common ones:

1. Virus and Malware: Perhaps the most common reason for broken registry items, malware infestation can corrupt multiple keys and values at once and impact the functioning of all those settings that rely on them. 

2. Fragmentation: Fragmenting of the registry over time can also break certain items, especially after installing software or updating software and services

3. Registry meddling: Improper changes to the registry done via the Registry Editor can end up breaking registry items too, especially when done without proper knowledge or information about what’s going on.  

4. Build-up of items: Over time, your registry can end up with tons of items that are corrupted, unnecessary, plain empty, or misplaced. This can not only hurt other, functional registry items, but also clog your system and damage it internally. 

How to fix broken registry items on Windows 11 (10 methods explained)

If your system has slowed to a crawl, is taking longer to boot up/shut down, crashing sporadically, or spewing errors at every corner, you may have broken registry items. Here are a few ways of fixing them. 

Method 1: Run System File Checker (SFC) Scan

The native System File Checker is designed specially to fix broken missing system files, including those in the registry. Here’s how to make use of it:

  1. Press Start, type cmd, right-click on the Command Prompt, and select Run as administrator. That will open the Command Prompt tool for you.
  2. Here, type the following command: sfc /scannow
  3. Press Enter. Wait for the scan to finish.
  4. You should get a message that says that Windows Resource Protection found corrupt files and successfully repaired them. 

If you get a message that says otherwise, move on to the next few fixes.

Method 2: Run DISM Tool

The second route to take when fixing broken items is to use the Deployment Image & Servicing Management (DISM) tool to scan for issues. Here’s how to do so:

  1. Open the Command Prompt as shown before. Then type the following command: DISM /Online /Cleanup-Image /ScanHealth
  2. Then press Enter. Wait for the scan to finish.
  3. Then enter this command: DISM /Online /Cleanup-Image /RestoreHealth
  4. Press Enter.
  5. Once finished, restart your PC and check if the 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 items. Here’s how to make use of it:

  1. Press Start, type disk cleanup, and open the application.
  2. Now, choose drive ‘C:’ (default selection) and click on OK.
  3. On the disk cleanup window, you’ll find a bunch of files that you can delete to save up space. But we want to clean system files so choose Clean up system files towards the bottom left.
  4. Again choose C: drive and click OK.
  5. Wait for the scan to finish.
  6. You will see ticks next to the files Disk Cleanup recommends you should clean. Click OK to confirm.
  7. Click Delete files again.

Restart your computer once the cleanup is finished and you should have fewer registry files clogging up the system. 

Method 4: Run Startup Repair

Startup Repair is another option built into Windows Recovery environment that can help diagnose and troubleshoot problems with the system, including broken registry files. Here’s how to access it:

  1. Press the shortcut combination Win+I to open the Settings app. With ‘System’ selected in the left pane, scroll down and select Recovery.
  2. Next to Advanced startup, click on Restart now.
  3. The computer will now restart and boot into Windows Recovery Environment. Click on Troubleshoot to begin.
  4. Click on Advanced options.
  5. Click on Startup repair.
  6. Windows will now run startup repair, troubleshoot problems, and apply solutions. 

If you get the Srttrail.txt error along with the message “Startup couldn’t repair your PC”, refer to our guide on how to fix the Srttrail.txt error

Method 5: Do a System Restore

If broken registry items are impacting your ability to use Windows, you may have to resort to a system restore and roll back the settings to a point in the past when they were functional. Here’s how to do so:

  1. Press Start, type “create a restore point”, and click on Create a restore point.
  2. Click on System Restore.
  3. Now, with Recommended restore option selected, click on Next.
  4. Otherwise, if you want to choose a different restore point, select Choose a different restore point and click on Next.
  5. Check the box next to Show more restore points.
  6. Now choose the event before which you want the system to restore. Then click Next.

    (Note: You can click on “Scan for affected changes” to check the software that will be removed by system restore. Once the system is restored, you will have to reinstall these.)
  7. Finally, click on Finish to begin system restoration.

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

Method 6: Use a Third-Party App (CCleaner)

Registry clean tools such as CCleaner, Restoro, and Wise Registry Cleaner have received a lot of flak in the past, especially from Microsoft which says that it doesn’t support the use of registry cleaning utilities. But if the native tools don’t work, these can be relied upon, for the most part, so long as you are careful. 

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

Download: CCleaner

  1. Go to the above link and click on Download.
  2. Install CCleaner by following the on-screen prompts.
  3. Then open the application and go to the Registry tab.
  4. Then select the items you want to scan (best to leave them all selected) and click on Scan for Issues.
  5. Wait for the scan complete and then click on Review selected Issues.
  6. Before making any changes, CCleaner will prompt you for registry backup. Clean Yes.
  7. Pick a location to save the registry backup and click on Save.
  8. For every registry issue, you will get a pop-up Window that will allow you to review it beforehand. To fix the issue, click on Fix Issue.
  9. To fix all issues at once, click on Fix All Selected Issues.
  10. Once the issues are fixed, restart your PC. 

Method 7: Restore a Registry backup

If you have a registry backup, you can always restore the registry settings with it. But this method works only if you already have a registry backup in place. To learn more about creating a registry backup, check out the final few sections of the article.

Here’s how you can restore your system with a registry backup:

  1. Press Start, type “Registry editor” and open it.
  2. Click on File.
  3. Select Import.
  4. Browse for the registry backup file (one that ends with .reg), select it, and click on Open.
  5. Wait for the registry to be restored. 

Method 8: Reset your PC

If the aforementioned solutions don’t work, it’s possible that the registry items have been bad for a long time and cannot be easily fixed. In such cases, it helps to reset your PC and restore Windows to its default settings. Here’s how to do so:

  1. Press Start and click on the power button.
  2. Then while holding down the Shift button, click on Restart.
  3. This will lead you to the Windows Recovery environment. From here, select Troubleshoot.
  4. Then click on Reset this PC.
  5. Choose either to keep your files or remove everything.
  6. Then follow the on-screen prompts to continue resetting the PC. 

Method 9: Reinstall Windows

When all else fails, reinstallation can feel like a defeat. But reinstallation will provide you with a clean copy of Windows to start afresh and take better care of the registry items this time around. You will require a bootable USB for this to work. 

  1. Plug in the USB and restart your system in the Windows Recovery Environment (as shown in the previous method). Select Troubleshoot.
  2. Click on Advanced options.
  3. Select UEFI Firmware Settings.
  4. Click on Restart.
  5. Select Boot Device options by pressing the corresponding key.
  6. Select your USB device with the arrow keys. Then press Enter.
  7. Once the Windows Setup starts, click Next.
  8. Now follow the on-screen prompts to reinstall Windows. 

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

Note: This method applies only to Pro, Enterprise, and Education editions of Windows 11. To get the Group Policy Editor on Windows 11 Home, refer to our guide on How to Enable Group Policy Editor on Windows 11 Home.

If you’re not able to access Registry Editor, you will have to take the assistance of the Group Policy Editor. 

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

  1. Press Start, type gpedit and open Edit Group Policy.
  2. In the left pane, expand User Configuration, then Administrative Templates, and then click on System.
  3. On the right, find Prevent access to registry editing tools and double-click on it
  4. Now, make sure either the “Not configured” or “Disabled” option is selected.
  5. Then click OK.
  6. Restart your PC to take effect and your Registry Editor will be enabled. 

Maintaining Registry Backups 

Once your system is back to speed, it is important to ensure that your PC starts maintaining registry backups if it isn’t already the case. Creating registry backups from time to time ensures that you have a prior snapshot to revert to in case the registry and its items go bad again in the future. Here’s how to back up the registry:

1. Create a backup of the Registry

Firstly, let’s look at how you can create a backup of the registry yourself.

  1. Press Start, type registry editor, and open the Registry Editor.
  2. Click on File.
  3. Select Export.
  4. Give your backup a name and save it somewhere safe (such as a USB or an external hard drive).
  5. Then click Save.

2. Enabling Registry Automatic Backup (and how to restore  the Registry with it)

In previous versions (version 1803 and earlier), Windows used to create a secret backup automatically that could be accessed if one were so inclined. However, that has since been discontinued. Nevertheless, with a few tweaks, you can enable it yourself and access it later in case things go south again. 

Firstly, here’s how you can enable registry automatic backup of registry items:

  1. Open the Registry Editor (as shown earlier). Then go to the following path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager
    Alternatively, copy the above and paste it in the Registry Editor’s address bar, and hit Enter.
  2. Now, right-click on the Configuration Manager folder on the left, select New, and then click on DWORD (32-bit) Value.
  3. Name the newly created registry key EnablePeriodicBackup.
  4. Double-click on it and change the value to 1. Click OK.
  5. Restart your system for changes to take effect. Once booted up, go to the following address and check if it is populated with files: C:\Windows\System32\config\Regback
    In the beginning, you may see that the files within the folder are all ‘0 KB’ in size.

    But don’t worry about it. This will be updated whenever Automatic Maintenance takes place, which is about once every 10 days.

If you want the registry to be backup up right now, you will have to take the help of ‘Task Scheduler’. Here’s how to go about it:

  1. Press Start, search for task scheduler, and hit Enter.
  2. In the left pane, expand Task Scheduler Library.
  3. Then Microsoft.
  4. Expand Windows.
  5. Then select Registry.
  6. You should see a “RegIdleBackup” file on the right.
  7. Right-click on it and select Run.
  8. Now if you return to the ‘RegBack’ folder, you should see that the size of the files has been updated.

Let us now see how this backup can be used to restore order to your broken registry items. 

  1. Press Start and click on the power button.
  2. Then hold down the “Shift” key and click on Restart.
  3. This will open up the Windows Recovery environment. Here, click on Troubleshoot.
  4. Select Advanced options.
  5. Click on Command Prompt.

Here, we will be typing the drive letter where Windows is installed. The default drive letter for Windows is C. However, this could be different for some especially when done via the command prompt in the Windows Recovery environment. The recovery mode doesn’t always show the default drive (C:) as the one where Windows is installed.

  1. To check if that is the case, type C:, press Enter, and then type dir and hit Enter to see what is within that drive. If you find that it has folders like ‘Program Files’, ‘Windows’, etc., then you are on the right path.
  2. If not, make sure to try out a few different letters, followed by the dir command. In our case, it was the default letter C: itself.
  3. Once the right drive is selected, type the following command: cd C:\Windows\system32
  4. Hit Enter. Then type the following command: mkdir configBackup
  5. This command is to create a backup folder where files from the ‘config’ folder can be temporarily backed up. Hit Enter. Then type the following: copy config configBackup
  6. Hit Enter. This will move the files from the temporary folder to the ‘configbackup’ folder.
  7. Once you see that the files are copied, type the following command: cd config\Regback

    Hit Enter. We have now moved the path to the secret Registry backup folder.
  8. Type the following to check the contents and the size of each file: dir
  9. Hit Enter. Take note of the names of the files here.
  10. Now type the name of the file and hit enter one by one for each file, as such: copy /y software ..
  11. Hit Enter.
  12. Now type the following: copy /y system ..
  13. Hit Enter.
  14. Similarly, do so for all the files highlighted earlier. Once done, close the Command Prompt and restart Windows. This should restore your registry files with the ones that are automatically backed up.

So these were a few ways to fix broken registry items. We hope you were able to find a solution that worked and now know how to clean the registry and create backups in case things go wrong in the future.