Direction Software

Windows Problems / / 6 min

Restore Confidence in Your Windows System Files

Windows includes built-in tools that can inspect protected operating system files and replace damaged copies without requiring a full reinstall. This guide explains how to run System File Checker (SFC) from an elevated Command Prompt or Windows Terminal, interpret its results, and use Deployment Image Servicing and Management (DISM) when SFC cannot complete a repair. It also covers preparation, restart guidance, offline scans, common error messages, and when a repair install or professional support may be the safer next step. The process is designed for everyday Windows users who need a fast, structured way to address crashes, missing components, update failures, or unexplained system instability.

When Windows starts behaving unpredictably, damaged or missing system files can be part of the problem. Symptoms may include repeated crashes, built-in apps that will not open, failed updates, error messages after startup, or features that suddenly stop working. Windows provides two built-in command-line tools for checking these files: System File Checker (SFC) and Deployment Image Servicing and Management (DISM). Used in the right order, they offer a fast and low-risk first response before you consider more disruptive repairs.

What a system file check does

SFC examines protected Windows system files and compares them with known-good versions stored in the local component cache. If it finds an incorrect, missing, or corrupted protected file, it attempts to restore the proper version automatically. The standard command is sfc /scannow.

DISM works at a deeper level. It checks the Windows component store that SFC relies on for replacement files. If that store is damaged, SFC may report corruption but be unable to repair everything. Running DISM first in that situation can restore the repair source, after which SFC should be run again.

A successful SFC scan is useful evidence, not a universal diagnosis. It verifies protected Windows files, but it does not test every driver, installed application, storage device, or hardware component.

Prepare before running the tools

These commands generally do not affect personal documents, installed programs, or settings. Still, it is sensible to save open work and close applications. The scan may take several minutes, and a slow drive or a heavily used computer can make it take longer.

  • Save files and close work that should not be interrupted.
  • Connect a laptop to AC power.
  • Make sure you are signed in with an administrator account, or can provide administrator credentials.
  • If Windows Update is actively installing updates, let it finish and restart first.
  • Keep an internet connection available if you may need DISM to obtain repair content from Windows Update.

Do not close the command window while a scan is in progress, even if the percentage appears to pause. Stopping the process unnecessarily can leave you without a clear result.

Run SFC for the fastest check

For most users, start with SFC. In Windows 11, right-click the Start button and select Terminal (Admin). In Windows 10, you may see Windows PowerShell (Admin), Command Prompt (Admin), or Windows Terminal (Admin). Approve the User Account Control prompt.

  1. Open an elevated Windows Terminal, PowerShell, or Command Prompt.
  2. Type sfc /scannow and press Enter.
  3. Wait for verification to reach 100 percent.
  4. Read the final message before closing the window.
  5. Restart Windows if the tool repaired files, then test the original issue.

Use the command exactly as shown. A space is required between sfc and /scannow. You do not need to specify a drive letter for a normal scan started from a running copy of Windows.

Understand the messages SFC displays

The final SFC result determines what to do next. The table below compares the common outcomes with the most practical response.

Result messageWhat it usually meansRecommended next action
Windows Resource Protection did not find any integrity violations.Protected system files passed the check.Investigate applications, drivers, updates, disk health, or hardware instead.
Windows Resource Protection found corrupt files and successfully repaired them.Corruption was found and repaired.Restart Windows and confirm that the original symptom is gone.
Windows Resource Protection found corrupt files but was unable to fix some of them.SFC needs a healthy component store or cannot replace every file.Run DISM RestoreHealth, then run SFC again.
Windows Resource Protection could not perform the requested operation.The scan was blocked or Windows has a broader servicing issue.Restart, try again, and consider Safe Mode or an offline SFC scan.

Use DISM when SFC cannot repair files

Open an elevated terminal again and run the following command:

DISM /Online /Cleanup-Image /RestoreHealth

The /Online option targets the Windows installation currently running. /RestoreHealth checks the component store and repairs detected corruption. On many computers, DISM uses Windows Update as its repair source, so remain connected to the internet and give it time. The progress indicator can seem slow at certain percentages; this is not necessarily a sign that it has stopped.

When DISM finishes successfully, run sfc /scannow once more. This second pass matters because DISM repairs the source SFC uses, while SFC repairs protected files in the active Windows installation.

If DISM reports a source-files error

An error such as “source files could not be found” can occur when Windows Update is unavailable, restricted by organizational policy, or unable to provide the required repair content. Avoid downloading random system files from unofficial websites. Instead, check your network connection, install pending Windows updates, or use installation media that exactly matches your Windows edition, language, and build as a repair source. If the computer is managed by an employer or school, contact its IT support team before changing servicing settings.

Try Safe Mode or an offline scan for stubborn cases

If Windows is unstable enough that commands fail during a normal startup, Safe Mode can reduce interference from startup software and third-party services. Hold Shift while selecting Restart, then choose Troubleshoot, Advanced options, Startup Settings, and Restart. Select the Safe Mode option after the computer restarts, then open an administrator terminal and try SFC again.

You can also use the Windows Recovery Environment to scan an offline installation. Drive letters may differ there, so first identify the partition containing the Windows folder. A typical offline command, after confirming the correct letters, is:

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

Replace C: only after verifying the correct Windows partition. An incorrect path will not repair the intended installation. For users who are unsure about drive letters or recovery commands, Safe Mode or assistance from a qualified technician is often the safer option.

What to do after the repair check

If SFC and DISM complete successfully but the same problem continues, focus on the symptom rather than repeatedly running the commands. Check whether the issue began after a driver, application, or update was installed. Review Windows Update, update device drivers from the computer or device manufacturer, and test whether the problem happens in a clean boot environment.

For recurring crashes or file corruption, also consider storage and memory health. Unexpected shutdowns, failing drives, and unstable memory can damage files again after they are repaired. Back up important data promptly if you see repeated corruption, disk warnings, or blue-screen errors.

When the operating system is broadly damaged, an in-place repair installation using official Windows installation media may preserve personal files and installed applications while reinstalling Windows components. That is a larger step than SFC or DISM, so ensure you have a current backup and follow Microsoft guidance for your version of Windows.

References

Also in

About the author

Stefano BarcellosEditor in chief

Journalist and editor. Writing about technology, culture and everyday life for over a decade.