How to Fix Corrupted System Files (SFC and DISM)
An IT technician, an East Asian man in his twenties, troubleshooting a desktop computer tower on a workbench

How to Fix Corrupted System Files (SFC and DISM)

Corrupted Windows system files can make features stop working, cause errors or freeze the PC. To fix them in Windows 11, run DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow in an administrator Terminal. DISM fetches good copies from Windows Update; SFC replaces damaged files. Both need admin rights, so at work, ask IT.

Try these quick fixes first

  1. Save your work, install waiting Windows updates and restart.
  2. Stay connected to the internet, because DISM downloads its repair files from Windows Update.
  3. Open Terminal as an administrator. If Windows asks for an administrator password, ask IT.
  4. Run DISM first, then SFC, and let each one finish.
  5. Restart after SFC reports “Verification 100% complete.”
  6. Is it a damaged Word or Excel file? Use Open and Repair instead. SFC doesn’t fix documents.

Install Windows updates and restart first

Microsoft’s steps for System File Checker begin here, and a restart also finishes any repair Windows has waiting.

  1. Save your work and close your apps.
  2. Select Start > Settings > Windows Update > Check for updates, install what it finds and restart.
  3. If Windows Update says “Reinstall your current version of Windows to repair system files and components,” go to the reinstall step near the end of this guide.
  4. At work, IT may control updates. If they won’t install, see our Windows Update Stuck guide.

Open Terminal as an administrator

SFC and DISM change protected Windows files, so Windows runs them only for an administrator, which is why at work this is usually a job for IT.

  1. This needs administrator rights. At work, ask your IT team.
  2. Right-click Start (or press Windows logo key + X) and select Terminal (Admin).
  3. When Windows asks whether to allow the app to make changes, select Yes.
  4. If it asks for an administrator’s user name and password instead, your account isn’t an administrator. Stop here and ask IT.
  5. Prefer Command Prompt? Type cmd in the search box, right-click Command Prompt and select Run as administrator. The commands work the same in either window.

Run DISM to repair the Windows image

DISM repairs the store of Windows files that SFC copies from, using fresh copies from Windows Update, which is why Microsoft has you run it before SFC.

  1. Stay connected to the internet.
  2. In the administrator window, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. Note the space before each slash.
  3. Wait. Microsoft says this can take several minutes. Don’t close the window.
  4. When it reports “The restore operation completed successfully” and “The operation completed successfully,” go on to SFC.
  5. If it ends with “The source files could not be found” or error 0x800f081f, DISM couldn’t get its repair files. Your IT team can point it at another repair source, such as a PC running the same version of Windows.

Run System File Checker (sfc /scannow)

SFC checks every protected Windows system file and replaces damaged or missing ones with a good copy.

  1. In the same window, type sfc /scannow and press Enter. Note the space between sfc and the slash.
  2. SFC warns that “This process will take some time.” Leave the window open until it reports “Verification 100% complete.”
  3. Type exit, press Enter and restart the PC, so any repairs that are waiting can finish.

What do the SFC results mean?

SFC ends with one of a few messages, and each one tells you what to do next.

  1. Note the last message SFC shows before you close the window.
  2. Find it in the table below and follow the step next to it.
SFC saysWhat it meansWhat to do
Windows Resource Protection did not find any integrity violations.Your Windows system files are fine.Look for another cause in the guide for your symptom.
Windows Resource Protection found corrupt files and successfully repaired them.SFC fixed the damage.Restart and check whether the problem is gone.
Windows Resource Protection found corrupt files but was unable to fix some of them.Some damage remains.Run DISM, restart and run SFC again. If it repeats, IT checks the CBS log.
Windows Resource Protection could not perform the requested operation.SFC couldn’t run.IT can run SFC in Safe Mode, as Microsoft recommends.
There is a system repair pending which requires reboot to complete.An earlier repair is waiting.Restart, then run SFC again.
You must be an administrator running a console session in order to use the sfc utility.The window isn’t running as administrator.Open Terminal (Admin), or ask IT.

Check the CBS log (a job for IT)

SFC and DISM record what they found and fixed in the CBS log, which shows IT exactly which file couldn’t be repaired.

  1. This needs administrator rights. At work, ask your IT team.
  2. The log is at C:\Windows\Logs\CBS\CBS.log.
  3. To pull out SFC’s entries, IT can run Microsoft’s command in an administrator window: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt". It saves them to sfcdetails.txt on the desktop.
  4. With the damaged file’s name, IT can replace it with a good copy from a PC running the same version of Windows, following Microsoft’s System File Checker page.

What if SFC and DISM can’t fix the files?

When the repair tools run out of options, Windows can reinstall itself over the top and keep your files, apps and settings.

  1. If you ran SFC before DISM, run DISM, restart and run SFC again. Microsoft runs DISM first because it supplies SFC’s repair files.
  2. Back up your files, then select Start > Settings > System > Recovery, and under Fix problems using Windows Update, select Reinstall now, then OK. Keep the PC plugged in and online until it finishes.
  3. On a work PC, ask IT first. Microsoft says the option may be missing on PCs your work manages.
  4. If Windows won’t start, IT can run Startup Repair from the recovery screen (Troubleshoot > Advanced options > Startup Repair), which repairs missing or damaged system files, or run SFC from there. Our blue screen guide shows how to reach it.
  5. IT can also use System Restore to roll system files and settings back to a restore point from before the trouble began. It doesn’t touch personal files.
  6. Reset this PC and a clean reinstall are the last resort. On a work computer, leave them to IT.

Damaged Word or Excel file? Use Open and Repair

SFC and DISM repair only Windows’ own files, so a Word, Excel or PowerPoint file that won’t open needs the app’s Open and Repair command instead.

  1. In the app, select File > Open > Browse and go to the file. Don’t open it from the Recent list.
  2. Select the file, select the arrow next to Open, then select Open and Repair.
  3. In Excel, if Repair can’t recover the workbook, select Extract Data to save its values and formulas.
  4. For an error message, an unsaved file or an older copy, see “Word Experienced an Error Trying to Open the File”, How to Recover an Unsaved Word Document, How to Recover an Unsaved Excel File and How to Restore a Previous Version of an Excel File.

Why does this happen?

  • An update was interrupted by a restart, a forced shutdown or a power cut.
  • The system drive ran out of space, so an update couldn’t finish.
  • An update failed and couldn’t fully roll back.
  • The PC went a long time without updates.
  • Disk errors or a failing drive, which IT can check with chkdsk.

When should you call IT?

  • You don’t have administrator rights, which is normal on a work PC.
  • SFC still finds files it can’t fix after you run DISM and SFC again.
  • DISM can’t find its repair files or ends with an error code.
  • Windows won’t start, or asks for a BitLocker recovery key.
  • Files keep getting damaged, or the PC warns about the drive. Back up your work and call right away, so IT can test the drive and memory.
  • You’re down to Reset this PC or reinstalling Windows.

If damaged files keep coming back on several computers, read about our managed IT services.

OAC Technology’s IT support team fixes problems like this for businesses across the Twin Cities. Clients can call 952-548-5558, Monday to Friday, 8 a.m. to 6 p.m. Central. Not a client yet? Call the same number or send us a message.

Common questions

How do I fix corrupted files in Windows 11?

For Windows system files, run DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow in an administrator Terminal, then restart. For a damaged Word or Excel file, use Open and Repair in the app instead.

Should I run SFC or DISM first?

Run DISM first. Microsoft’s current steps run DISM and then sfc /scannow, because DISM supplies the good files SFC uses for its repairs.

How long do SFC and DISM take?

Microsoft says each can take several minutes, and SFC warns that the scan will take some time. Leave the window open until SFC reaches 100%.

Does Windows 11 have a repair tool?

Yes. Besides SFC and DISM, Windows 11 has Startup Repair for a PC that won’t start, and Fix problems using Windows Update, which reinstalls Windows while keeping your files, apps and settings.

Can corrupted files be uncorrupted?

Yes, for Windows system files, because SFC replaces damaged ones with good copies. A damaged document may open with Open and Repair, and if it doesn’t, restore an earlier version or a backup.

Related guides

Author picture

OAC Technology

Author

Related Articles