Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
Redmond desk3 min

How to Repair Windows 11 System Files with DISM and SFC

Use an elevated Command Prompt to run DISM, then SFC. Learn how to interpret the result and what to do if a scan cannot run or leaves corrupt files unrepaired.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run DISM first, then System File Checker (SFC), from an administrator Command Prompt. DISM repairs the Windows image; SFC then scans protected system files and can replace damaged files with cached copies. The sequence can help with system-file corruption, but it is not a fix for every Windows problem.

Before you start

Microsoft recommends installing the latest Windows updates and restarting before running SFC. You’ll also need administrator access for the commands.

As an Amazon Associate I earn from qualifying purchases.

  1. Install available Windows updates and restart your PC.
  2. Search Windows for Command Prompt, select Run as administrator, and approve the prompt.

Run DISM, then SFC

Keep the commands in this order: DISM prepares the Windows image and its repair files; SFC checks protected system files. Microsoft’s instructions say DISM may take several minutes. Do not close the Command Prompt while either operation is running.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. At the elevated Command Prompt, enter DISM.exe /Online /Cleanup-image /Restorehealth and press Enter. Wait for DISM to finish and report successful completion. By default, it obtains the files it needs through Windows Update.
  2. After DISM succeeds, enter sfc /scannow and press Enter. Leave the window open until verification reaches 100%, then read the final message.

Type the spaces exactly as shown, including the space before each slash in the DISM command and the space between sfc and /scannow. Microsoft describes SFC this way: “The sfc /scannow command will scan all protected system files and replace corrupted files with a cached copy.”

#1 Best Overall
Sale
Microsoft Windows 11 (USB)
  • Less chaos, more calm. The refreshed design of Windows 11 enables you to do what you want effortlessly.
  • Biometric logins. Encrypted authentication. And, of course, advanced antivirus defenses. Everything you need, plus more, to protect you against the latest cyberthreats.
  • Make the most of your screen space with snap layouts, desktops, and seamless redocking.
  • Widgets makes staying up-to-date with the content you love and the news you care about, simple.
  • Stay in touch with friends and family with Microsoft Teams, which can be seamlessly integrated into your taskbar. (1)

What the SFC result means

Message Meaning Next step
Windows Resource Protection did not find any integrity violations. SFC found no missing or corrupted protected system files. Retry the task that led you to run the scan. If the issue remains, investigate it as a separate Windows problem.
Windows Resource Protection could not perform the requested operation. The scan could not complete as requested. Try running SFC in Safe Mode. Also check that %WinDir%WinSxSTempPendingDeletes and %WinDir%WinSxSTempPendingRenames exist.
Windows Resource Protection found corrupt files and successfully repaired them. SFC repaired the corrupt files it found. Retry the task that originally failed.
Windows Resource Protection found corrupt files but was unable to fix some of them. Some detected corruption remains unrepaired. Review the SFC log for details. If the problem persists, follow Microsoft’s repair or Windows recovery guidance.

Review the SFC log if files remain unrepaired

Microsoft documents extracting SFC-related entries from the CBS log to a text file on your desktop. Run this in Command Prompt:

findstr /c:"[SR]" %windir%LogsCBSCBS.log >"%userprofile%Desktopsfcdetails.txt"

Open sfcdetails.txt and use the date and time recorded in the entries to identify the latest scan; the file can include entries from earlier SFC runs as well. Avoid manually replacing protected files as a first step. That is an advanced escalation, not the normal repair sequence.

If DISM cannot get repair files

DISM normally uses Windows Update as its repair-file source. If the Windows Update client is broken, Microsoft documents using a suitable Windows installation or a Windows side-by-side folder on network storage or removable media instead. The source must actually contain appropriate repair files for the Windows image being repaired; arbitrary installation media or a made-up folder path is not enough.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Replace C:RepairSourceWindows below with the real location of a suitable source before running the example:

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:RepairSourceWindows /LimitAccess

For details on choosing a repair source, see Microsoft’s Windows image repair instructions.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Retry the task that exposed the problem

After the repair sequence, retry the operation that originally failed. If you ran these commands because Windows Update was having trouble, try Windows Update again. DISM and SFC address Windows image and protected system-file issues; they do not establish the cause of every update failure or other Windows symptom. For broader update troubleshooting, use Microsoft’s Windows Update troubleshooting guidance.

Quick Recap

SaleBestseller No. 1
Microsoft Windows 11 (USB)
Microsoft Windows 11 (USB)
Make the most of your screen space with snap layouts, desktops, and seamless redocking.; FPP is boxed product that ships with USB for installation
$128.99
Bestseller No. 2

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.