How to repair Windows 11 using the SFC and DISM tools

Last update: 23 September 2026
  • Key differences between SFC, DISM, and CHKDSK for troubleshooting system failures.
  • Logical sequence of command execution to optimize Windows image repair.
  • Advanced recovery methods using external installation media and safe mode.
Frustrated person in front of a computer with system errors, illustrating the initial problems of slowness or freezes.

I'm sure it's happened to you: suddenly your computer starts running incredibly slowly, some applications close unexpectedly, or worse, you get the dreaded blue screen of death. We often think our PC has died, but the reality is that it's most likely that some critical system files have become corrupted or disappeared, leaving Windows a bit confused.

The good news is that you don't need to be a computer whiz or format your hard drive right away. Microsoft has integrated powerful tools into the command prompt that allow you to automatically detect and fix these errors . In this article, we'll explain in detail how to use SFC, DISM, and CHKDSK to get your computer running smoothly again.

troubleshooting Windows 11
Related articles:
Complete guide to troubleshooting Windows 11

Why do Windows files get corrupted?

Unlike a program crash like Photoshop, which only affects that application, a corrupted system library (such as the infamous kernel32.dll) can cause the entire computer to crash . There are several reasons why this might happen. For example, sudden shutdowns due to power outages can leave files partially written, creating serious inconsistencies on the disk.

It's also very common for Windows updates to be interrupted by a network failure or a software conflict, leaving the system in a hybrid and corrupted state. To avoid this, it's helpful to know how to troubleshoot Windows Update . Of course, we can't forget the activity of malware and viruses , which sometimes deliberately delete or modify essential files. And finally, physical hardware failures , such as bad sectors on an old hard drive, can make data readability impossible.

  How to fix slowness and lag in Android Auto

Repair tools: SFC, DISM, and CHKDSK

Although they may seem similar because they are all written on a black screen, each one has a different purpose. Knowing which one to use and when is key to avoiding mistakes.

Repairing Windows 11: Methods and Precautions
Related articles:
Repairing Windows 11: Effective Methods and Key Precautions
  • SFC (System File Checker): It's the first step. It's responsible for checking the system's protected files and, if it finds a corrupted one, it replaces it with a healthy copy that Windows saves in a cache folder.
  • DISM (Deployment Image Servicing and Management): It's the bigger and more powerful sibling. It doesn't look at each file individually, but rather analyzes the entire system "image." If the cache used by SFC is corrupted, DISM repairs it by connecting to Windows Update.
  • CHKDSK (Check Disk): While the previous ones look at the software, this one focuses on the hardware. It analyzes the hard drive structure and repairs defective sectors or logical errors in the partitions.

How to run SFC /scannow step by step

To begin, you need to open Command Prompt (CMD) or Windows Terminal with administrator privileges . To do this, search for "cmd" in the Start menu, right-click it, and choose "Run as administrator." If you don't do this, the system will give you an access error, and you won't be able to do anything.

Once inside, type the command sfc /scannow and press Enter. The computer will analyze the entire system and, when finished, will display one of these messages: found no violations (everything perfect), It repaired the files correctly (problem solved) or It found errors but was unable to correct some of them.In this last case, that's when we should switch to using DISM.

What is DISMTools
Related articles:
What is DISMTools: The DISM interface for managing and repairing Windows

If you feel like going further, there are other parameters such as /verifyonly, which only scans without repairing, or /scanfileto analyze a specific path. For the most extreme cases where Windows won't even boot, you can use the command from recovery media with the parameters /offbootdir and /offwindir to tell it where the Windows partition is installed.

  How to enable and configure hidden Windows 11 settings

Deep repair with DISM

If SFC has failed, it's time to bring out the big guns. DISM is essential when the system is behaving erratically or experiencing unexpected crashes in native applications . Ideally, you should follow this sequential order of commands:

  1. DISM /Online /Cleanup-Image /CheckHealthA quick check to see if any damage has been recorded.
  2. DISM /Online /Cleanup-Image /ScanHealthA more thorough analysis that compares the system to a clean version.
  3. DISM /Online /Cleanup-Image /RestoreHealthThe ultimate command that Download and replace the corrupted files using Windows Update.

Note that the final process can take a long time, even hours depending on your hard drive, so don't interrupt it. If you don't have internet access or Windows Update fails, you can specify an external source (such as an installation USB drive) using the parameter /Source pointing to the file install.esd or install.wim.

Disk maintenance with CHKDSK

When you notice that your PC takes forever to boot up or you're constantly getting blue screens, the problem could be hardware-related. The command chkdsk C: /f /r That's the solution. The parameter /f corrects errors on the disk and the /r locates damaged areas and recovers information that can be salvaged from them.

Close-up of two high-performance NVMe SSDs on a neutral gray background.
Related articles:
How to detect and fix SSD errors in Windows 11

Note that, since the disk is usually in use, Windows will ask if you want to schedule the scan for the next restart . Type "Y", press Enter, and restart your computer. You will see a black screen analyzing the disk; do not interrupt it under any circumstances to avoid further data corruption.

The master order for a complete repair

If you want to get your system running perfectly and don't know where to start, the best approach is to follow this sequence of commands: first DISM, then SFC, and finally CHKDSK . This way, you first ensure that the base system image is correct, then repair individual files based on that healthy image, and finally, make sure that the hard drive where everything resides has no physical failures.

  Quick Machine Recovery: Microsoft's solution for critical errors in Windows

If, after all these commands, your PC is still malfunctioning, there are situations where there's no going back. Deep malware infections, critical hardware failures, or catastrophic updates can force you to perform a clean reinstall of Windows. In those cases, the best course of action is to back up your documents and start from scratch.

Having these three tools on hand allows you to solve the vast majority of stability problems without deleting anything personal. While SFC and DISM take care of the logical aspects and system files, CHKDSK safeguards the physical health of your storage drive, forming an essential maintenance trio for any Windows 11 user who wants to avoid unnecessarily formatting their computer.

secure keyboard shortcut Windows
Related articles:
Keyboard shortcuts and methods to start safe mode in Windows