TechBuzzPro

How to Fix Corrupted Windows System Files

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Corrupted system files can cause crashes, errors, and instability in Windows. You can fix most of these issues by running the built-in System File Checker (SFC) and Deployment Image Servicing and Management (DISM) tools from an elevated Command Prompt.

What You'll Need

  • A Windows PC with administrative privileges
  • Stable internet connection (required for DISM)
  • Command Prompt opened as Administrator

Step-by-Step

  1. Create a Restore Point: Before making changes, it is wise to create a system restore point. Search for "Create a restore point" in the Start menu, select your main drive, and click "Create." Name it something like "Before SFC Fix."
  2. Open Command Prompt as Admin: Press the Windows Key + X on your keyboard. From the menu that appears, select "Terminal (Admin)" or "Command Prompt (Admin)." If prompted by User Account Control, click "Yes."
  3. Run the SFC Scan: In the command window, type the following command exactly and press Enter:
    sfc /scannow
    This process checks protected system files and repairs them if they are corrupted. It may take 10–20 minutes. Do not close the window while it is running.
  4. Review the Results: Once finished, read the message at the bottom. Common results include:
    • "Windows Resource Protection did not find any integrity violations." (No issues found)
    • "Windows Resource Protection found corrupt files and successfully repaired them." (Success)
    • "Windows Resource Protection found corrupt files but was unable to fix some of them." (Further action needed)
  5. Run DISM if SFC Fails: If Step 4 indicates files could not be fixed, or if you want to ensure the system image is healthy, run the Deployment Image Servicing and Management tool. Type the following command and press Enter:
    DISM /Online /Cleanup-Image /RestoreHealth
    This tool uses Windows Update to download fresh copies of system files to replace damaged ones. Ensure you are connected to the internet. This step can also take several minutes.
  6. Re-run SFC: After DISM completes, run the SFC command again (sfc /scannow) to verify that all issues have been resolved.
  7. Restart Your Computer: Close the Command Prompt and restart your PC to apply any changes.

Common Mistakes

  • Running CMD without Admin Rights: Standard user accounts cannot access protected system files. Always use "Run as administrator."
  • Ignoring DISM: Many users stop after SFC fails. DISM is crucial because SFC relies on a local cache; if that cache is broken, SFC cannot repair files. DISM fixes the source cache first.
  • Interrupting the Process: Closing the window during the scan can leave the system in an inconsistent state. Let the process finish completely.
  • Assuming Hardware Failure: Corrupted files can sometimes indicate failing hard drives or RAM. If software fixes fail repeatedly, check your hardware health.

Tips

  • Check Event Viewer: If specific apps crash, check the Windows Event Viewer under "Windows Logs > Application" to see if file corruption is linked to a specific program.
  • Free Up Disk Space: Ensure you have at least 15% free space on your system drive. DISM needs room to download and extract new files.
  • Use Safe Mode: If Windows is too unstable to boot normally, try running these commands in Safe Mode by booting into Advanced Startup options.
  • Backup Important Data: While these tools are safe, system changes always carry minor risk. Keep important documents backed up externally.

Troubleshooting

If the tools do not resolve the issue, try these additional steps:

  • Check Disk Errors: Run chkdsk C: /f /r in the admin Command Prompt. This checks for physical disk errors that might be causing file corruption. You will need to restart to complete this.
  • Reset Windows Update Components: If DISM fails due to network errors, reset the Windows Update service via Settings > Update & Security > Troubleshoot.
  • In-Place Upgrade: As a last resort, use the Windows Media Creation Tool to perform an "Upgrade" installation. This reinstalls Windows while keeping your files and apps, effectively replacing all system files with fresh ones.

Frequently Asked Questions

Does SFC delete my personal files?

No. SFC only replaces corrupted system files with correct versions from the component store. Your documents, photos, and installed programs remain untouched.

Why does SFC say it found files but couldn't fix them?

This usually means the local component store (the cache used for repairs) is also corrupted. Running DISM /RestoreHealth downloads fresh files from Windows Update to fix the cache, allowing SFC to work correctly afterward.

Can I run these commands in Safe Mode?

Yes. Booting into Safe Mode can help if background processes are interfering with the scan. Access Safe Mode via Settings > Update & Security > Recovery > Advanced startup.

How long does sfc /scannow take?

It typically takes between 10 and 30 minutes, depending on your computer's speed and the number of files being checked. Be patient and do not interrupt it.

What if DISM fails with error 0x800f0954?

This error often relates to Windows Update services. Try resetting the Windows Update components via the Troubleshooter, or manually clear the C:\Windows\SoftwareDistribution\Download folder before trying DISM again.

Is it safe to ignore the error if no symptoms are present?

If your PC runs smoothly and you have no crashes or blue screens, minor file inconsistencies may not impact daily use. However, fixing them proactively prevents future instability.