guide · static export
PC

Repair Corrupted System Files With DISM and SFC

Crashes, missing Settings pages and failed updates often come from a damaged component store. Two commands repair it, in a fixed order.

by@guidox updated:10/31/26 time:40 min level:Intermediate tested on:Windows 11 24H2 works on:Windows 10, Windows 11 tools:Admin terminal
TL;DR

Run **DISM /Online /Cleanup-Image /RestoreHealth** first, then **sfc /scannow**. DISM repairs the store that sfc reads from, so the reverse order can fail and look like a broken system.

Before you start

Requirements

  • Admin terminal
  • Internet or install media
  • Thirty minutes
Step by step

Instructions

01

Check the image health first

DISM reports whether the component store is repairable. Knowing the state before you repair avoids blaming sfc for a fault it cannot fix.

DISM /Online /Cleanup-Image /CheckHealth
02

Repair the component store

The RestoreHealth switch pulls replacement files from Windows Update. It takes ten to twenty minutes and can appear stuck at 62 percent for a long while.

DISM /Online /Cleanup-Image /RestoreHealth
tipWithout internet, point the command at a mounted ISO with /Source:D:\ources\nstall.wim /LimitAccess.
03

Run the system file check afterwards

With a healthy store, sfc can replace damaged files from it. Run it from an admin terminal and read the summary line at the end, not the progress percentage.

sfc /scannow
04

Read the log when sfc reports unfixable files

The CBS log names what could not be repaired. A single corrupted file that belongs to a third-party driver is not a Windows fault, and replacing the driver is the fix.

%windir%\ogs\BS\BS.log
⚠ warningThe log is large. Search for the string cannot repair rather than reading the whole file.
05

Repair the update components if the store will not heal

A damaged update cache blocks DISM from fetching replacements. Stop the update services, rename the cache folder and try again.

net stop wuauserv & net stop bits
06

Verify with a normal day of use

The repair either fixed the symptom or it did not. Try the action that failed before: open the Settings page, install the update, launch the app.

Troubleshooting

Common issues

DISM fails with error 0x800f081f

No source files available. Use the ISO source switch or fix the network connection first.

sfc reports files it cannot repair

Check the CBS log. Unrelated driver files are common and are fixed by reinstalling that driver.

Both commands succeed but the fault remains

The problem is in the profile or an application. Create a test profile to confirm.

The commands need admin and refuse

Start the terminal with Run as administrator. A normal window cannot access the component store.

FAQ

Frequently asked

Does this delete my files?

No. It replaces system files and rebuilds the component store.

How often should I run it?

Only when there is a symptom. It is a repair, not maintenance.

How to undo this

Nothing to undo: the commands only replace damaged system files with the versions they should have. A created restore point is the safety net if an update follows.

Changelog · 1 entry
  1. 2026-10-31
    First version
Interactive version: checklist, feedback, related guides →

Free · no account needed · tracks your progress