When Windows starts crashing, settings pages won't open, updates fail or the Start menu stops responding, damaged system files are a common cause. Windows 11 has two built-in repair tools for that:
Neither tool touches your documents, photos or installed apps. Run them in the order below.
Both commands below work in Command Prompt and PowerShell. Keep a laptop plugged in while they run.
Type this command (note the space before each /) and press Enter:
DISM.exe /Online /Cleanup-image /Restorehealth
DISM may download clean files through Windows Update, so stay connected to the internet. The progress bar can pause for several minutes, often at 20% or 62%. That's normal; don't close the window.
When it finishes you should see The restore operation completed successfully or The operation completed successfully.
In the same window, type:
sfc /scannow
(There's a space between sfc and /scannow.) Wait until it says Verification 100% complete. You'll get one of these results:
| Message | What it means | What to do |
|---|---|---|
| Windows Resource Protection did not find any integrity violations. | System files are fine. | Look elsewhere (drivers, apps, hardware). |
| Windows Resource Protection found corrupt files and successfully repaired them. | Fixed. | Restart and check whether the problem is gone. |
| Windows Resource Protection found corrupt files but was unable to fix some of them. | Some files couldn't be repaired. | Run DISM again, restart, then SFC again. |
| Windows Resource Protection could not perform the requested operation. | SFC couldn't run. | Run it again from Safe Mode. |
Restart the PC after any repair, even if nothing asks you to.
SFC writes its details to the log file C:\Windows\Logs\CBS\CBS.log. It's long and technical, but you can open it in Notepad and search for "Repairing" or "Cannot repair" to see which files were involved. You don't need it for the fix itself.
chkdsk C: /scan in the admin Terminal to check the file system without taking the drive offline. Back up first if you see disk errors.Good times to run them:
They won't fix hardware faults, a driver bug or a broken third-party program, but they rule out one big cause in under an hour, without risk to your files.
Microsoft's steps run DISM first (DISM.exe /Online /Cleanup-image /Restorehealth) and then sfc /scannow. DISM repairs the component store that SFC copies its good files from.
No. It only checks protected Windows system files and replaces damaged ones with correct copies. Your personal files and apps are not touched.
Each usually takes 5 to 30 minutes, depending on the PC and the drive. DISM can sit at 20% or 62% for a while; let it finish.
Run the DISM command again, restart, and run sfc /scannow once more. If it still fails, try System Restore or a repair install of Windows that keeps your files.
Comments