Readers like you help support XDA Developers. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

Quick Links

Windows 11 may have been released almost two years ago, but that doesn’t mean it's free from bugs. Corruption of Windows system files is more common than you may realize and is the leading cause of stability issues like slowdowns, freezes, and crashes.

Microsoft offers tons of maintenance tools to help you troubleshoot and fix operating system errors, but it might be difficult for beginners to use these fixes. This article will help you out with the repair process by providing all possible ways to resolve the issues plaguing your Windows 11 PC.

Before you begin

Attempting to repair the operating system files is a risky procedure, so it’s a good option to back up your important documents and folders. The simplest way to do so is to upload them to a cloud platform like Dropbox, Google Drive, or Microsoft OneDrive. But I’d recommend creating a restore point that you can use to recover all your documents and PC settings if you accidentally damage your Windows files during the repair process. You can follow these steps to create a manual restore point in Windows 11:

  1. Type "Restore Point" into the Windows Search Bar.
  2. Click on the Create a restore point suggestion to open the System Properties pop-up window.
  3. Pick the drive where you want to store the restore points and click on the Configure button.
    System Properties window showing available drives.
  4. Toggle the Turn on system protection checkbox and choose the amount of disk space you want to allot for the recovery facilities.
    A screenshot highlighting all the options you should change to enable Restore Point creation.
    • A general rule of thumb is to allocate at least 15GB worth of space for the system restore points.
  5. Hit Apply and press OK to head back to the System Properties window.
  6. Click on Create to open the System Protection window.
  7. Give a name to the restore point before pressing the Create button.
    Click on the Create button and give a name to the restore point.
  8. Windows will notify you when it finishes creating the save point. Click on Close and select OK.

How to repair Windows 11 using Windows troubleshooters

Running Windows troubleshooters is a preliminary fix to resolve minor issues in Windows 11. In some cases, the troubleshooter can root out and resolve the problems by itself without requiring you to mess around with Command Prompt or Control Panel settings.

  1. Right-click on the Start menu and choose Settings.
  2. Select the Troubleshoot submenu under the System tab.
    Select the Troubleshoot option under System.
  3. Click on Other troubleshooters under Options and run all the troubleshooters one by one until the issue is resolved or until you reach the end of the page.
    Click on Other troubleshooters.

Of course, Windows troubleshooters can only get you so far, and that’s why we’ve got plenty of other tweaks to repair your Windows 11 files.

How to repair Windows 11 using Windows updates

Microsoft is notorious for releasing buggy versions of updates for Windows 11. If you notice any stability issues after installing updates, rolling back to an older version of Windows can fix your system.

  1. While you're on the Settings app, navigate to the Windows Update tab and click on Update history.
  2. Choose Update history from the Update tab.
    Choose the Uninstall updates option.
  3. Press the Uninstall button next to the recently installed update and select Uninstall when prompted.

Alternatively, you might want to update the operating system to the latest version as Windows 11 updates include many patches and bug fixes, and one of them could resolve the issue affecting your system.

  1. Head to the Windows Update section of the Settings app.
  2. Click on the Download & install all button next to the Updates available to download section.
    A screenshot depicting the procedure to install Windows updates.

How to repair Windows 11 using Windows Terminal commands

A screenshot depicting the commands used to repair Windows 11.

Windows Terminal is Microsoft’s latest terminal emulator that supports multiple command-line applications and shells. As a result, you can access many powerful utilities to help troubleshoot your PC, with CHKDSK, SFC, and DISM being three such commands.

You'd want to start with CHKDSK, which is an acronym for "check disk." By scanning and repairing bad sectors in your boot drive, CHKDSK can fix data corruption errors plaguing your system.

  1. Right-click on the Start button and choose Terminal (Admin).
    Right-click on the Start button and chose the Terminal (Admin) option.
  2. Press Yes when prompted for administrator access.
  3. Type the following command and press Enter.
    chkdsk /r
  4. Press Y and hit Enter if Windows Terminal asks you to schedule the error-checking process the next time your PC restarts.

If CHKDSK proves to be ineffective, you’d want to run Deployment Image Servicing and Management (DISM), a repair utility that allows you to diagnose and fix system images. Microsoft recommends you run this command before SFC when repairing the Windows Image.

  1. Type the following command and hit the Enter key.
    Dism /Online /Cleanup-Image /ScanHealth
    The scanhealth command will check the Windows image for component store issues.
  2. You can resolve the corruption errors detected by scanhealth by entering the following command into Windows Terminal and pressing Enter.
    Dism /Online /Cleanup-Image /RestoreHealth
  3. Restart your system.

Next, you should run System File Checker or SFC to detect corrupted system files and replace them with fresh versions.

  1. Type the following command in Windows Terminal and hit Enter.
    sfc /scannow
  2. Reboot your system once Windows Terminal finishes executing the SFC command.

How to repair Windows 11 using the Windows Recovery Environment

If the Windows Terminal commands fail, you can use two methods built into the Windows Recovery Environment to repair the OS. The Startup Repair facility can analyze the system logs to troubleshoot boot issues, and can even fix them without further input from the user.

  1. Open the Settings app and click on Recovery under the System tab.
    Choose Recovery under System tab on the Settings app.
  2. Hit the Restart now button next to the Advanced startup option under Recovery options.
    Click Restart now to enter Windows Recovery Environment.
  3. Choose Restart now once again when prompted.
  4. Click on Troubleshoot after your PC reboots into the Windows Recovery Environment.
    Click on the Troubleshoot option inside Windows Recovery Environment.
  5. Select Advanced options.
    Choose Advanced Options inside Windows Recovery Environment.
  6. Choose Startup Repair.
    Choose Startup Repair inside Windows Recovery Environment.

You can also run the Bootrec.exe command in the Windows Recovery Environment to resolve issues affecting the Master Boot Record (MBR), boot sector, and Boot Configuration Data (BCD) store. As with the Startup Repair method, you’ll need to enter the Windows Recovery Environment to use this command.

  1. Once you’re in the Windows Recovery Environment, click on the Troubleshoot button and select Advanced options like you did earlier.
  2. Choose Command Prompt.
    Click on Command Prompt inside Windows Recovery Environment.
  3. Run the following commands one by one.
    Bootrec.exe /FixMbr, Bootrec.exe /FixBoot, and Bootrec.exe /RebuildBcd
  4. Restart your PC after executing the three commands.

How to repair Windows 11 using System Restore

As mentioned earlier, the System Restore facility built into Windows allows you to roll back any changes made after the creation of the restore point. Fair warning, while you can use it to fix system file corruption, you may lose important data, so you should proceed with caution. Also, you can only use this method if you have a restore point created well before you first encountered the errors on Windows 11.

  1. Type "Restore Point" into the Search bar and pick the Create a restore point option.
  2. Choose System Restore on the System Properties pop-up window.
  3. Pick the Restore Point you'd like to revert your system to, press Next, and hit the Finish button.
    A screenshot detailing all the steps to use System Restore in Windows 11

How to repair Windows 11 by resetting your PC

If System Restore was unable to repair Windows 11, you’d have to resort to reinstalling the operating system. Fortunately, the Reset setting allows you to keep your personal files, though you’ll have to download all your apps after the reset wizard finishes installing Windows 11.

  1. On the Settings app, click on the Recovery option under the System tab.
  2. Select Reset PC under Recovery options.
    Click on Reset PC under the Recovery options.
  3. Click on Keep my files or Remove everything to initiate the system reset.
    Click on Keep my files or choose Remove everything.

Summary

Hopefully, you were able to repair your Windows 11 system. Almost all the fixes will work on Windows 10 PCs, so you can follow along even if you haven't upgraded to Microsoft's latest OS yet.

If you continue to encounter crashes or BSODs after implementing all the fixes, it’s possible there’s something wrong with your hardware. In this case, you'd want to start by replacing the CMOS battery and then troubleshoot the other components of your PC, starting with the hard drive or SSD that you use as the boot drive.