How to Repair Windows 11 System Files with SFC and DISM

Windows 11SystemMaintenanceTroubleshooting

The Problem

Apps crash, Windows features misbehave, updates fail, or you're following a troubleshooting guide that says "repair your system files." Windows keeps thousands of protected system files, and when they get corrupted — by a bad update, sudden power loss, disk errors, or malware — almost anything can break.

Windows ships two built-in repair tools for exactly this:

  • SFC (System File Checker) — scans protected system files and replaces corrupted ones from a local cache.
  • DISM (Deployment Image Servicing and Management) — repairs the component store, the source that SFC restores files from. If the store itself is damaged, SFC can't fix anything until DISM repairs it first.

They work as a pair. This guide shows the right order and how to read the results.

Quick Checks Before You Start

  1. You need an administrator terminal. Right-click the Start button and choose Terminal (Admin) — accept the User Account Control prompt.
  2. You need an internet connection for DISM — it downloads clean files from Windows Update when repairing.
  3. Plug in laptops. A full scan can take 15–45 minutes; don't let the battery die mid-repair.

Step 1: Run SFC First

  1. In the admin terminal, type:
    sfc /scannow
    
  2. Press Enter and wait — verification runs to 100% and must not be interrupted.
  3. Read the result:
    • "Windows Resource Protection did not find any integrity violations" — files are fine; your problem lies elsewhere.
    • "...found corrupt files and successfully repaired them" — corruption fixed. Restart and re-test your original problem.
    • "...found corrupt files but was unable to fix some of them" — the repair source is damaged. Continue to Step 2, then repeat SFC.

Step 2: Run DISM to Repair the Component Store

  1. In the same admin terminal, run:
    DISM /Online /Cleanup-Image /RestoreHealth
    
  2. Wait for it to reach 100%. It often pauses a long time around 62% — that's normal, don't close the window.
  3. When it reports "The restore operation completed successfully", the component store is repaired.

Optional quicker checks if you only want a diagnosis: DISM /Online /Cleanup-Image /CheckHealth (instant flag check) and /ScanHealth (deeper scan, no repair).

Step 3: Run SFC Again

Now that DISM has fixed the repair source, give SFC a working set of clean files:

sfc /scannow

This second pass usually resolves the "unable to fix" result from Step 1. Restart your PC afterward.

Step 4: If Repairs Still Fail

  1. Check the disk first — file corruption often comes from drive errors:
    chkdsk C: /f /r
    
    Approve the restart prompt with Y and reboot. Also verify SSD and hard drive health.
  2. Review the SFC log for what couldn't be fixed: the details are in C:\Windows\Logs\CBS\CBS.log (search for "cannot repair").
  3. In-place repair install — reinstalls Windows over itself, keeping files and apps, and replaces every system file: reinstall Windows without losing data.

When to Use This Guide

Run the SFC → DISM → SFC sequence whenever you hit:

It's the single most useful repair sequence in Windows — safe to run any time, and it never deletes your personal files.