Blog

Windows Acting Up With Strange Errors? Repair Corrupted System Files With SFC and DISM (Windows 10 and 11)

Hand-drawn chart where tall red bars turn into short green bars, with a wrench and a check mark

If Windows Update keeps failing, you get the occasional blue screen, or built-in apps such as Settings and the Start menu keep freezing, some Windows system files may be corrupted. Try the two repair commands built into Windows, DISM and SFC, in this order. You don't need to install anything, and your own files are not deleted.

1. Open an administrator terminal

  • Right-click the Start button and open Terminal (Admin) or Windows PowerShell (Admin). On Windows 10, "Command Prompt (Admin)" also works.
  • Click "Yes" when User Account Control asks. Neither command runs without administrator rights.

2. First, repair the Windows source with DISM

  • Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  • This step repairs the "source" that SFC uses to fix files. It downloads the files it needs, so your PC must be online.
  • It takes about 10 to 20 minutes, and progress may look stuck at 20% or 62% for a while. Don't close the window; wait until it finishes.
  • When you see "The restore operation completed successfully", move on to the next step.

3. Scan and repair system files with SFC

  • Type sfc /scannow and press Enter. The scan usually takes around 10 minutes.
  • "Windows Resource Protection did not find any integrity violations": your system files are fine. The problem is more likely a driver or a program.
  • "Windows Resource Protection found corrupt files and successfully repaired them": just restart your PC.
  • "Windows Resource Protection found corrupt files but was unable to fix some of them": run the DISM command from step 2 once more, then run sfc /scannow again. Details are logged in %windir%\Logs\CBS\CBS.log.
  • "Windows Resource Protection could not perform the requested operation": restart in Safe Mode and run the same command there.

4. If that still doesn't fix it

  • On Windows 11, Settings → System → Recovery → "Fix problems using Windows Update" lets you Reinstall now: it reinstalls your current version of Windows while keeping your apps, files and settings.
  • If you have a System Restore point from before the problem started, you can also roll back to it.
  • Whatever you try, it is safest to back up important files first.

Sources: Microsoft Support – Use the System File Checker tool to repair missing or corrupted system files, Microsoft Learn – Repair a Windows image

Blog

← Back to the list Back to top ↑