PCBugLab PCBugLab
  • Home
  • How-to guides
    How-to guidesShow More: How-to guides
    windows-error-0x80080005-pcbuglab
    How to fix Windows Update error 0x80080005
    7 Min Read
    update-service-disabled-featured-pcbuglab
    How to fix Windows error 0x80070422
    Windows Update error 0x80240034 download failure illustration-pcbuglab
    How to fix Windows error 0x80240034
    7 Min Read
    Windows error 0x8024402c - pcbuglab
    How to fix Windows error 0x8024402c
    8 Min Read
    windows-update-error-0x800705b4-featured-pcbuglab
    How to fix Windows Update error 0x800705b4
    7 Min Read
  • Tech news
    Tech newsShow More: Tech news
    Acer Predator Atlas 8 handheld with its screen, joysticks and front controls
    Acer Predator Atlas 8: New handheld costs $1,299.99
    4 Min Read
    apple-airtag-4-pack-amazon-deal-pcbuglab
    AirTag 4-pack deal: the big price drop you need to know
    3 Min Read
    rtx-5090-featured-pcbuglab
    RTX 5090 shipment worth $470,000 vanishes at airport
    4 Min Read
    Xbox Ally X20 vs Xbox Ally X - PCBUGLAB
    Xbox Ally X20 vs Xbox Ally X: Is the upgrade worth it?
    5 Min Read
    Super Nt Plus - Mega SG - PCBUGLAB
    Analogue Super Nt Plus and Mega Sg Plus bring retro upgrades
    4 Min Read
  • Gaming news
    Gaming newsShow More: Gaming news
    gta6-cyberleek-pcbuglab
    Cyberleek claims GTA 6 Xbox leak playable for PC
    5 Min Read
  • Cybersecurity
    CybersecurityShow More: Cybersecurity
    cPGuard update attack - pcbuglab
    cPGuard update attack plants backdoors on Linux servers
    2 Min Read
    Gorbag WinRAR attacks - pcbuglab
    New Gorbag WinRAR attacks target Ukraine’s sensitive data
    3 Min Read
    Chinese hackers launch ARTEX AI attacks-pcbuglab
    Chinese hackers launch ARTEX AI attacks on 200+ organizations
    3 Min Read
    BTCPay Server flaw exploit - pcbuglab
    BTCPay Server flaw exploit lets hackers steal Bitcoin and Litecoin
    3 Min Read
    Chrome-extension-search-hijacking-pcbuglab
    Chrome extension search hijacking: what you need to know now
    4 Min Read
  • Contact
Reading: How to repair Windows system files
Share
PCBugLabPCBugLab
Font ResizerAa
  • Home
  • Cybersecurity
  • Tech news
  • How-to guides
  • Hardware
Search
  • Home
  • Cybersecurity
  • Tech news
  • How-to guides
  • Hardware
Follow US
PCBugLab > How-to guides > How to repair Windows system files
How-to guides

How to repair Windows system files

buglab
By
buglab
Last updated: November 18, 2026
9 Min Read
repair-system-files-windows-pcbuglab
SHARE

SFC scannow checks protected Windows system files and repairs problems when it can. If Windows features stop working, errors keep returning, or the operating system behaves unpredictably, this built-in command can help establish whether damaged system files are involved.

Contents
  • 1. Open Command Prompt as an administrator
  • 2. Run DISM before SFC scannow
  • 3. Run SFC scannow and let verification finish
  • 4. Read the System File Checker results
  • 5. Check the logs if SFC cannot repair files

Run it from an administrator command window after repairing the Windows component store with DISM. The two tools address different parts of Windows: DISM services the repair image, while System File Checker checks the protected files used by your installation.

This guide covers Windows 11 and Windows 10. You do not need a separate SFC download, a registry cleaner, or a paid repair utility. Save your work, connect a laptop to power, and keep an internet connection available for the DISM step.

Tool or commandPurposeWhen to use it
DISM /RestoreHealthChecks and repairs the Windows component store.Before SFC in this repair sequence.
sfc /scannowChecks protected system files and attempts repairs.After DISM completes successfully.
sfc /verifyonlyChecks protected system files without repairing them.When you specifically want a verification-only check.

1. Open Command Prompt as an administrator

Administrator Command Prompt title highlighted before running Windows repair commands.

A normal command window does not provide the permissions needed for these repair commands. Open an elevated window before you begin, rather than trying to work around an access error later.

  1. Open Start and type Command Prompt or cmd.
  2. Choose Run as administrator.
  3. Approve the confirmation prompt. If Windows asks for an administrator account, use an account you are authorized to use.
  4. Check that the window title includes Administrator.

On Windows 11, an administrator Terminal window can also run the repair commands. This guide uses Command Prompt throughout, including its log-export syntax, so the instructions and screenshots remain consistent.

Before changing anything, note the original symptom and when it occurs. For example, record whether Settings closes immediately, a Windows feature fails, or only one third-party app has a problem. After the repair sequence, repeat that same action to judge whether anything improved.

2. Run DISM before SFC scannow

DISM RestoreHealth command running before SFC scannow in an administrator window.

Start by checking the component store that Windows uses for servicing and repairs. In the administrator Command Prompt, enter this command and press Enter:

DISM.exe /Online /Cleanup-Image /RestoreHealth

/Online targets the Windows installation currently running on your PC. It does not mean that DISM is scanning a website. /Cleanup-Image selects image-servicing operations, and /RestoreHealth checks for component-store corruption and attempts repairs.

DISM normally obtains needed repair content through Windows Update, although an organization’s policies can control the source. Leave the command running until it returns a final result. Its progress indicator can pause; a stationary percentage alone is not proof that the process has failed.

There is no reliable completion time that applies to every PC. Storage speed, the state of the installation, and access to repair files all affect the duration. Avoid launching several copies or restarting simply because progress appears slow.

If DISM reports success, continue with SFC. If it reports an error, record the code and message first. A repair-source error may require a suitable Windows repair source; do not paste a random /Source path from another computer. Adding /LimitAccess prevents Windows Update access and will not help when that is the source you need.

3. Run SFC scannow and let verification finish

SFC scannow command showing system file verification in progress.

In the same administrator window, enter the following command. Include the space between sfc and /scannow:

sfc /scannow
  1. Press Enter once to start the scan.
  2. Wait while verification progresses. Leave the command window open.
  3. Allow verification to reach 100% and wait for the final message.
  4. Read and save the result before closing the window.

SFC scannow attempts repairs as it checks protected files. It does not require you to approve each individual replacement. If you only intend to check integrity without making repairs, sfc /verifyonly is the separate option for that purpose.

The command is not designed to erase personal documents or photos. Nevertheless, an existing system problem is a good reason to keep important work backed up. Do not use the scan’s completion as a substitute for a backup.

Do not expect SFC to reinstall a broken game, restore a deleted personal file, remove malware, or repair a failing drive. A clean scan narrows one part of the investigation; it is not a complete health certificate for the computer. For file-system or disk errors, see our CHKDSK scan guide to understand the checks and their limits before proceeding.

4. Read the System File Checker results

System File Checker showing an example result with no integrity violations.

The final message matters more than the fact that the progress indicator reached 100%. Use the result to decide what to do next instead of running the same command repeatedly without checking its outcome.

Result reported by SFCMeaningNext action
No integrity violationsNo protected-file integrity problems were detected in this scan.Test the original symptom and investigate other causes if it remains.
Corruption repairedSFC found problems and reports that it fixed them.Restart, then test the feature or action that failed.
Some corruption remainsThe repair was incomplete.Review the logs and the DISM result before choosing another repair method.
Requested operation could not be performedThe scan could not finish its work.Try the SFC scan in Safe Mode and record any repeat failure.

A successful repair does not prove that every earlier crash had the same cause. Restart and reproduce the original problem. If it no longer occurs, you have a practical result to work from. If it persists, retain the scan message rather than assuming the repair failed.

For a scan that cannot perform its requested operation, you can enter Safe Mode through Shift + Restart > Troubleshoot > Advanced options > Startup Settings > Restart, then choose 4 or F4. Save your work before restarting, and have your BitLocker recovery key available if device encryption is enabled. Once signed in, open an administrator Command Prompt and try sfc /scannow again.

This is a targeted retry for a scan that cannot run properly, not a requirement after every clean result. Restart normally afterward.

5. Check the logs if SFC cannot repair files

Command Prompt exporting SFC scannow log entries to a temporary text file.

If SFC scannow leaves corruption unresolved, its log entries can help identify what happened. The main servicing log is %windir%\Logs\CBS\CBS.log. It contains information from more than one Windows servicing component, so a long file or an isolated warning is not automatically evidence of an unresolved SFC repair.

In an administrator Command Prompt, use this command to extract entries marked for System File Checker into a text file in your temporary folder:

findstr /c:"[SR]" "%windir%\Logs\CBS\CBS.log" > "%TEMP%\sfcdetails.txt"

Then open the extracted file:

notepad "%TEMP%\sfcdetails.txt"

Check the dates and times against the scan you just completed. The file can include entries from earlier runs, and intermediate repair messages need to be read alongside the final outcome. The export overwrites the same temporary text file when you run it again; it does not change the original CBS log.

If DISM also failed, preserve its error code and examine %windir%\Logs\DISM\dism.log. When requesting help, provide the Windows version, original symptom, final SFC message, and relevant recent log entries. Avoid sharing an entire log publicly without checking it for account names, paths, or other identifying information.

Do not take ownership of system folders or replace DLLs with downloads from unrelated sites. If corruption repeatedly returns, investigate the wider cause rather than repeatedly applying the same repair. Persistent Windows damage may require a supported repair installation after a backup; a problem confined to one app may instead require that app’s own repair procedure.

TAGGED:DISMSFC scannowSystem File CheckerWindows 10Windows 11Windows troubleshooting

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article fix-error-0xc000007b-pcbuglab How to fix error 0xc000007b
Next Article irql-error-fix-pcbuglab How to fix IRQL not less or equal on Windows
Leave a review

Leave a Review Cancel reply

Your email address will not be published. Required fields are marked *

Please select a rating!

FacebookLike
InstagramFollow

Subscribe Now

Subscribe to our newsletter to get our newest articles instantly!
Most Popular
gta6-cyberleek-pcbuglab
Cyberleek claims GTA 6 Xbox leak playable for PC
November 23, 2026
windows-error-0x80080005-pcbuglab
How to fix Windows Update error 0x80080005
November 18, 2026
update-service-disabled-featured-pcbuglab
How to fix Windows error 0x80070422
November 11, 2026
Windows Update error 0x80240034 download failure illustration-pcbuglab
How to fix Windows error 0x80240034
November 11, 2026
Windows error 0x8024402c - pcbuglab
How to fix Windows error 0x8024402c
November 11, 2026

You Might Also Like

drive-not-found-error-pcbuglab
How-to guides

How to fix external drive not showing

11 Min Read
keep-your-files-featured
How-to guides

How to Install Windows 11 without losing files: Complete Step-by-Step Guide

24 Min Read
error-0xc004f213-pcbuglab
How-to guides

How to fix Windows activation error 0xc004f213

5 Min Read
win-11-iso-download-failed-featured-pcbuglab
How-to guides

How to fix Windows 11 ISO download that keeps failing

5 Min Read

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!
PCBugLab PCBugLab

Clear solutions for everyday PC problems. Explore troubleshooting guides, hardware advice, and practical insights to get more from your technology.

Explore

  • Home
  • Cybersecurity
  • Tech news
  • How-to guides
  • Hardware

Have a Question or Suggestion?

Tell us which PC problems or tech topics you’d like us to cover. Your feedback helps shape our next guides.
Contact Us
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?