WINDOWS HOW-TO GUIDES

Repair Windows system files with DISM and SFC

When Windows system files may be damaged, run DISM to repair the component store, then run System File Checker. Read each result before retrying the original task.

On this page
  1. Prepare an administrator Command Prompt
  2. Repair the Windows component store
  3. Check protected system files
  4. Read the result and retry the original task

Prepare an administrator Command Prompt

Save your work. Search Start for Command Prompt and select Run as administrator. If a work or school account blocks that choice, ask IT to run the checks.

Use this procedure when protected Windows files or the Windows component store may be damaged. Keep the original symptom or error so you can test it again after the scan.

Order of the system file checks. Run DISM RestoreHealth as administrator. After DISM succeeds, run sfc /scannow. Read the results and retry the original task.
Order of the system file checks.Enlarge

Repair the Windows component store

Run the command below. Wait for it to finish and read the result.

DISM.exe /Online /Cleanup-Image /RestoreHealth

Wait for DISM to finish. If it reports success, continue to SFC. If it says the source files could not be found, use the repair-source guide instead of repeating the same command.

Check protected system files

After DISM succeeds, run System File Checker from the administrator Command Prompt.

sfc /scannow

Leave Command Prompt open until verification reaches 100%, then record the message Windows shows.

Read the result and retry the original task

If SFC reports no integrity violations, it did not find damage in protected Windows files. Return to the original symptom and use the guide for the task that failed.

If SFC repaired files, restart and retry the same task. If it couldn’t complete the scan or repair some files, save the exact result and use Microsoft’s guidance for that message. It explains how to investigate further and, for unrepaired files, how to review the SFC log details.

Read the SFC result. No integrity violations. SFC found no damage in protected Windows files. Files repaired. Restart, then retry the original action. Could not finish or repair files. Save the result and follow Microsoft’s guidance for that message.
The result tells you whether to retry or investigate further.Enlarge

References

MYTURBOPC

About this page preview

This local preview draws on Microsoft or manufacturer documentation. The illustrated examples show where to look or how to choose a step.

The procedure and individual driver packages have not been tested for this preview.