TechBuzzPro

How to Check Windows System Files: Step-by-Step Guide

· 6 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

To check Windows system files, run the built-in System File Checker (SFC) and then Deployment Image Servicing and Management (DISM). Open Command Prompt as administrator, type sfc /scannow, and press Enter. When it finishes, run DISM /Online /Cleanup-Image /RestoreHealth to repair the component store that SFC relies on. These two commands scan for corrupted, missing, or modified system files and replace them with the correct versions from a local cache or Windows Update. No third-party tools are required. The scan typically takes 10–20 minutes and may need a restart afterward.

What You'll Need

  • A Windows PC running Windows 10 or Windows 11. The steps below apply to both; menu labels can differ slightly by version, device, or region.
  • Administrator rights on the account you are using. If you are on a standard account, you will need the administrator password.
  • An internet connection for the DISM step, because it downloads replacement files from Windows Update.
  • At least 1–2 GB of free disk space for temporary files and the repair process.
  • Patience: the full scan can take 10–30 minutes depending on your drive speed and the number of files.

Step-by-Step

  1. Open Command Prompt as administrator. Click the Start button, type cmd or Command Prompt in the search box, then right-click the result and choose Run as administrator. If User Account Control asks for permission, click Yes. On Windows 11 you can also right-click the Start button and select Terminal (Admin) or Windows Terminal (Admin); the commands work the same in either window.
  2. Run the System File Checker. In the administrator window, type sfc /scannow and press Enter. Note the space between sfc and /scannow. The scan starts immediately and shows a progress percentage. Do not close the window while it runs.
  3. Wait for the result. When the scan finishes, you will see one of several messages. “Windows Resource Protection did not find any integrity violations” means no problems were found. “Windows Resource Protection found corrupt files and successfully repaired them” means the tool fixed what it found. “Windows Resource Protection found corrupt files but was unable to fix some of them” means you should continue to the DISM step.
  4. Run DISM to repair the component store. In the same administrator window, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This command checks the Windows component store and replaces damaged files with healthy ones from Windows Update. It can take 10–20 minutes and may appear stuck at 20% or 40%; that is normal. Let it finish.
  5. Re-run SFC after DISM. Once DISM completes, run sfc /scannow again. This second pass uses the now-repaired component store and often fixes files that SFC could not repair the first time.
  6. Restart your PC. Close the Command Prompt window and restart Windows. Some repairs are only fully applied after a reboot. After restarting, you can check Windows Update for any pending updates, since system file repairs sometimes depend on the latest servicing stack.
  7. Review the results if needed. If you want a detailed log, open File Explorer and navigate to C:\Windows\Logs\CBS\CBS.log. This file records what SFC and DISM changed. It is large and technical, but you can search it for “repair” or “corrupt” to see what was fixed. You do not need to edit it.

Common Mistakes

  • Running the commands in a normal window. SFC and DISM require administrator privileges. If you open Command Prompt without “Run as administrator,” the scan will fail or exit immediately with an error about elevated permissions.
  • Typing the commands incorrectly. The most common errors are missing spaces (for example, sfc/scannow) or wrong capitalization in DISM switches. Use the exact strings shown above.
  • Closing the window too early. Both tools can appear frozen at a percentage for several minutes. Closing the window interrupts the repair and may leave the component store in a worse state.
  • Skipping DISM. SFC relies on a healthy component store. If the store itself is damaged, SFC cannot repair files. Running DISM first or immediately after a failed SFC is the correct order.
  • Expecting SFC to fix performance problems. System File Checker repairs corrupted Windows files. It does not clean up junk files, remove malware, or speed up a slow PC. Use it only when you suspect file corruption or see errors like “The file is corrupt” or blue-screen crashes.
  • Ignoring internet requirements. DISM with /RestoreHealth needs an internet connection to download replacement files. On a metered connection or offline PC, the command may fail with error 0x800f081f.

Tips

  • Run these scans after a sudden power loss, a failed update, or unexplained system errors. They are safe and do not delete your personal files.
  • If you use a laptop, plug it in before starting. A scan that loses power mid-way can leave the component store incomplete.
  • You can run SFC in Safe Mode if the normal scan fails repeatedly. Restart your PC, hold Shift while clicking Restart, then choose Troubleshoot > Advanced options > Startup Settings > Restart, and select Safe Mode with Networking. Run the same commands there.
  • Keep Windows Update enabled. Many system file repairs pull replacement files from Microsoft’s servers, and an outdated update stack can cause DISM to fail.
  • If you need to check a specific file rather than the whole system, SFC does not support that. Use the findstr command on the CBS log after a full scan to see whether a particular file was repaired.

Troubleshooting

If sfc /scannow says it found corrupt files but could not fix them, run DISM with /RestoreHealth and then repeat SFC. If DISM fails with error 0x800f081f, check your internet connection and try again; if it still fails, run DISM /Online /Cleanup-Image /StartComponentCleanup first, then retry the restore command. If SFC cannot run at all and reports “Windows Resource Protection could not start the repair service,” open Services (type services.msc in the Run dialog), find Windows Modules Installer, and make sure it is not disabled; set its startup type to Manual if needed, then retry. If the commands fail in normal mode, boot into Safe Mode with Networking and run them there. As a last resort, use the Reset this PC option in Settings > System > Recovery, choosing to keep your personal files; this reinstalls Windows and replaces all system files, but it removes installed apps and settings, so back up important data first.

Frequently Asked Questions

Does SFC delete my personal files?

No. System File Checker only replaces Windows system files. Your documents, photos, and installed programs are not affected.

How long does the scan take?

Typically 10–20 minutes for SFC and 10–20 minutes for DISM, depending on drive speed and system load. Slower mechanical drives can take longer.

Can I run these commands on Windows 7 or 8?

Yes, both SFC and DISM exist in Windows 7 and 8, but the DISM switches and availability of /RestoreHealth may differ. The steps above are written for Windows 10 and 11.

What if SFC finds no problems but my PC still crashes?

SFC only checks system file integrity. Crashes can come from drivers, hardware, or malware. Run Windows Memory Diagnostic, check for driver updates, and scan for malware with Microsoft Defender.

Do I need to run DISM every time I run SFC?

No. Run DISM only if SFC reports it could not repair files, or if you suspect the component store is damaged. For routine checks, SFC alone is enough.

Can I use PowerShell instead of Command Prompt?

Yes. Open PowerShell as administrator and run the same commands. The output and behavior are identical.