How to use Windows 10's System File Checker (SFC) scannow command to fix problems (2023)

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (1)

Jump to:

  • System File Checker online
  • System File Checker offline
  • Manual repair

On Windows 10, when you notice issues starting your laptop, random errors occur, or features don't work correctly, there is a good chance that some system files might be corrupted or missing for unknown reasons. Usually, you may experience problems with system files after installing a cumulative update or driver or making installation changes manually.

Regardless of the reason, if you come across any related issues, Windows 10 includes the System File Checker (SFC), a command-line tool designed to scan the integrity and restore missing or corrupted system files with working replacements.

This guide will walk you through the steps to use the System File Checker tool to repair damaged system files automatically or manually on Windows 10.

Warning: This is a friendly reminder that editing a system file is risky and can cause irreversible damage to your installation if you don't do it correctly. It is recommended to make a temporary full backup of your PC before proceeding.

How to repair Windows 10 from System File Checker

To repair an installation of Windows 10 using the System File Checker tool, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the Windows 10 system files and press Enter: sfc /scannow

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (2)

(Video) How to Run SFC /SCANNOW OFFLINE to Fix Problems on Windows 10 [2021]

  1. Confirm the command results:
  • Windows Resource Protection did not find any integrity violations – this indicates that the system does not have any corrupted or missing files.
  • Windows Resource Protection could not perform the requested operation – indicates a problem during the scan, and an offline scan is required.
  • Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log – this indicates that the tool detected problems and was able to fix them.
  • Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log – this indicates you may need to repair the corrupted files manually.

Once you complete the steps, the SFC command-line tool will scan, detect, and fix Windows 10 system file problems.

When the tool detects an issue, it is recommended to run the command around three times to ensure that all the problems have been corrected properly.

If you find problems running the tool, use this guide to use the Deployment Image Servicing and Management (DISM) tool to repair the local Windows 10 image files to allow SFC to complete successfully.

System File Checker logs

To view the details stored in the CBS.Log file from an SFC scan, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command and press Enter: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > C:\sfclogs.txt"

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (3)

  1. Open File Explorer (Windows key + E).
  2. Click on This PC from the left pane.
  3. Under the "Devices and drives" section, open the Local Disk (the "C" drive).
  4. Double-click the sfclogs.txt file to open it with the default text editor app.

After you complete the steps, the log file will reveal all the scanned system files and information for the unrepairable files.

This option is only available when performing a scan within Windows 10, not when performing an offline scan with Command Prompt.

How to repair Windows 10 from System File Checker offline

To repair Windows 10 using SFC with the offline option, use these steps:

  1. Open Settings.
  2. Click on Update & Security.
  3. Click on Recovery.
  4. Under the "Advanced startup" section, click the Restart now button.

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (4)

  1. Click on Troubleshoot.
  2. Click on Advanced options.
  1. Click on Command Prompt. (After selecting the option, the device will reboot.)

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (5)

  1. Select your account in the Advanced startup options.
  2. Confirm the account password.
  3. Click the Continue button.
  4. Type the following command to start the diskpart tool and press Enter: diskpart
  5. Type the following command to determine the location of the Windows and System Reserved partitions and press Enter: list volume
  6. Confirm the current drive letter assignment for the System Reserved partition (the one close to 500MB) and Windows 10 partition, usually the volume with the largest size.

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (6)

  1. Type the following command to exit diskpart and press Enter: exit
  2. Type the following command to run the System File Checker offline and press Enter: sfc /scannow /offbootdir=e:\ /offwindir=C:\Windows

In the command, we are using the /offboodir option to specify the drive letter of the System Reserved partition, which in this case is F. Also, the /offwindir option specifies the location of the Windows 10 files, which in this case is C:\Windows.

(Video) How to Fix Corrupt Windows 10 System Files | SCF and DISM Scan

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (7)

  1. Click the X button to close Command Prompt.
  2. Click on Continue.

Once you complete the steps, the tool will fix problems with system files, and the device will start normally.

How to repair Windows 10 manually without System File Checker

If the System File Checker cannot fix the damaged files, you may need to repair them manually.

Determine corrupted system files

To find out which files need replacing on Windows 10, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command and press Enter: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > C:\sfclogs.txt"

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (8)

  1. Open File Explorer (Windows key + E).
  2. Click on This PC from the left pane.
  3. Under the "Devices and drives" section, open the Local Disk (the "C" drive).
  4. Double-click the sfclogs.txt file to open it with the default text editor app.

After you complete the steps, the log file will reveal all the scanned system files and information for files that could not be repaired.

While in the file, you can use the find option (Ctrl + F) in the text editor and look for the term: "Cannot repair member file" to identify the corrupted files that need replacing.

Repair system files manually

You may be able to get good working files to replace your installation from another computer running the exact edition and version of Windows 10. If you do not know the location of the damaged file, you may need to perform an online search with the information in the SFC log file.

To repair damaged system files on Windows 10 manually, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to take ownership of the corrupted files and press Enter: takeown /f C:\PATH\TO\FILE

In the command, replace C:\PATH\TO\FILE with the actual path to the file that you are trying to fix. This example takes ownership of the "acproxy.dll" file: takeown /f C:\Windows\System32\acproxy.dll

  1. Type the following command to grant full administrator access to the corrupted file and press Enter: icacls C:\PATH\TO\FILE /Grant Administrators:F

In the command, replace C:\PATH\TO\FILE with the actual path to the file you are trying to fix. This example grants access to the "acproxy.dll" file: icacls C:\Windows\System32\acproxy.dll /Grant Administrators:F

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (9)

(Video) How To Repair Missing Or Corrupted System Files Using the System File Checker Tool In Windows 10

  1. Type the following command to replace the corrupted files with a good-known version and press Enter: copy C:\PATH\TO\SOURCE\GOOD\FILE C:\PATH\TO\DESTINATION\BROKEN\FILE

In the command, replace C:\PATH\TO\SOURCE\GOOD\FILE with the path of the new file and C:\PATH\TO\DESTINATION\BROKEN\FILE with the path of the corrupted file.

  • Quick tip: If you get a message saying you cannot replace the file because another process is using it, then either find and terminate the process or perform this task offline. (See above steps). This example replaces the "acproxy.dll" file in the System32 folder: copy C:\Files\acproxy.dll C:\Windows\System32\acproxy.dll
  1. Type the following command to verify the integrity of the Windows 10 system files and press Enter: sfc /verifyonly

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (10)

  1. (Optional) Type the following command to verify the integrity of the replacement file and press Enter: sfc /verifyfile=C:\PATH\TO\REPLACED\FILE

In the command, replace C:\PATH\TO\REPLACED\FILE with the path of the file you replaced. This example verifies the integrity of the "acproxy.dll" file inside the System32 folder: sfc /verifyfile=C:\Windows\System32\acproxy.dll

Once you complete the steps, if the new files pass the integrity check, you have resolved the problems with Windows 10.

If you cannot repair the installation using the System File Checker, you may consider starting fresh with a clean installation of Windows 10.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

  • Windows 11 on Windows Central — All you need to know
  • Windows 10 on Windows Central — All you need to know

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (11)

Windows 11

Cutting-edge operating system

A refreshed design in Windows 11 enables you to do what you want effortlessly and safely, with biometric logins for encrypted authentication and advanced antivirus defenses.

Windows Central Newsletter

Get the best of Windows Central in your inbox, every day!

(Video) How to Run SFC /SCANNOW to Fix Problems on Windows 10 [2021]

How to use Windows 10's System File Checker (SFC) scannow command to fix problems (12)

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.

FAQs

Does SFC Scannow fix anything? ›

The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.

How to fix Windows corrupted files and errors using SFC Scannow? ›

You can run sfc/scannow to check and repair corrupted system files:
  1. Click the Search button on your Windows computer. Type CMD, then right-click command prompt and choose Run as Administrator.
  2. Type SFC /scannow and hit enter.
  3. Wait for this process to complete.
Sep 22, 2022

How do I fix corrupted files in Windows 10? ›

  1. Fix 1. Corrupted File Repair Software Free Download1.
  2. Fix 2. Perform a Check Disk on the Hard drive.
  3. Fix 3. Use the CHKDSK/SFC Command.
  4. Fix 4. Run CHKDSK Alternative.
  5. Fix 5. Change the File Format.
  6. Fix 6. Use an Online File Repair Tool.
Sep 22, 2022

How do I repair Windows 10 with command prompt? ›

You can repair Windows 10 with CMD using the SFC and DISM commands.
  1. Entering the CMD windows.
  2. Type in sfc /scannow, and press the Enter key. ...
  3. If the SFC command doesn't work. ...
  4. Type in DISM /Online /Cleanup-Image /ScanHealth to scan the corruptions of Windows images.
Nov 2, 2022

How do I fix corrupted files? ›

Android: Which Is Best For You? Is It Time for You to Cut the Cord?
...
How to Fix Corrupted Files
  1. Perform a check disk on the hard drive. ...
  2. Use the CHKDSK command. ...
  3. Use the SFC /scannow command. ...
  4. Change the file format. ...
  5. Use file repair software.
Feb 25, 2022

How do I fix a corrupted EXE file? ›

Method #1: Fix corrupted file on Windows using DISM Scan
  1. Step 1: Firstly, press Windows + R keys simultaneously. ...
  2. Step 2: In this box, type cmd. ...
  3. Step 3: Now, copy and paste the DISM command – DISM.exe /Online /Cleanup-Image /RestoreHealth. ...
  4. Step 4: The repair tool will start doing its work.
Jun 1, 2022

Is there a Windows 10 repair tool? ›

Instead of fix-it tools, Windows 10 uses troubleshooters to help you solve problems with your PC. To run a troubleshooter: Select Start > Settings > Update & Security > Troubleshoot, or select the Find troubleshooters shortcut at the end of this topic.

How do I run chkdsk and fix errors? ›

Run CHKDSK from Command Prompt
  1. Type cmd (Command Prompt) in the Start menu search bar, then click Run as administrator.
  2. Type chkdsk and hit Enter. CHKDSK will scan for drive errors and let you know if it found any you should repair, but it won't try to fix them without a command.
Feb 17, 2022

How do I run Startup Repair in Windows 10? ›

How to initiate startup repair from the desktop or lock screen
  1. Click Start.
  2. Click the power button icon.
  3. Press and hold down the Shift key and then click Restart. ...
  4. Select Troubleshoot.
  5. Go to Advanced Options > Startup Repair.
  6. After the startup repair process is complete, reboot the computer.
Jan 3, 2022

How do I fix file or directory is corrupted and unreadable? ›

This could lead to the corruption of your connected external devices and stop you from accessing your files.
  1. Restart Your Computer. ...
  2. Disable Your Antivirus. ...
  3. Change the Location of the File. ...
  4. Scan the Drive. ...
  5. Set a New Drive Letter. ...
  6. Run the Windows Memory Diagnostic Tool. ...
  7. Check Your Computer for Malware. ...
  8. Run a Command Line.
Sep 27, 2022

How do I reset a corrupted Windows 10? ›

Here's how:
  1. Navigate to the Windows 10 Advanced Startup Options menu. ...
  2. Once your computer has booted, select Troubleshoot.
  3. And then you'll need to click Advanced options.
  4. Click Startup Repair.
  5. Complete step 1 from the previous method to get to Windows 10's Advanced Startup Options menu.
  6. Click System Restore.
Dec 16, 2022

Can you uncorrupt a corrupted file? ›

The Open and Repair command might be able to recover your file. Click File > Open > Browse and then go to the location or folder where the document (Word), workbook (Excel), or presentation (PowerPoint) is stored.

How do I force a system repair? ›

How to initiate startup repair from the desktop or lock screen
  1. Click Start.
  2. Click the power button icon.
  3. Press and hold down the Shift key and then click Restart. ...
  4. Select Troubleshoot.
  5. Go to Advanced Options > Startup Repair.
  6. After the startup repair process is complete, reboot the computer.
Jan 3, 2022

How do I repair Windows 10 with repair disk? ›

To use the system repair disc
  1. Insert the system repair disc into your CD or DVD drive.
  2. Restart your computer using the computer's power button.
  3. If prompted, press any key to start the computer from the system repair disc. ...
  4. Choose your language settings, and then click Next.
  5. Select a recovery option, and then click Next.

How to repair Windows 10 without boot? ›

Launch the Windows 10 Advanced Startup Options menu by pressing F11. Go to Troubleshoot > Advanced options > Startup Repair. Wait for a few minutes, and Windows 10 will fix the startup problem.

Can all corrupted files be fixed? ›

A corrupted file is always unusable and inoperable. When facing this issue, you can first try to repair them or try to run a virus detection program. However, if they do not work, you can try a third-party file recovery tool - Recoverit Data Recovery program to help recover corrupted files in Windows.

What causes corrupted system files? ›

How does a Windows file become corrupted? File corruption usually happens when there is an issue during the 'save' process. If your computer crashes the file being saved will likely be corrupted. Another cause might be damaged sections of your hard drive or storage media that might have viruses and malware.

Does resetting Windows 10 fix corrupted files? ›

Any problems caused by third-party software, system file corruption, system settings changes, or malware should be fixed by resetting your PC. Windows reset will put the software back into the same condition as it was when you started it for the very first time (such as when you purchased the PC).

How to fix corrupted files using CMD? ›

Right-click CMD.exe and select Run as Administrator. On the User Account Control (UAC) prompt, click Yes. In the command prompt window, type SFC /scannow and press Enter . System file checker utility checks the integrity of Windows system files and repairs them if required.

How do I run DISM command to fix corrupt files? ›

Repair corrupted files
  1. Open an elevated Command Prompt and type DISM /online /cleanup-image /restorehealth . ...
  2. Once the scan is complete, your system will automatically connect to the Windows Update service to download and replace the corrupt files.
  3. If the scan fails, please rerun it in Safe Mode.
Sep 16, 2022

How to check if file is corrupted? ›

If you suspect file corruption, run the "chkdsk" utility on the affected drives, adding the "/F /R" options after the "chkdsk" as described in the "Resources" section. When the hard drive is free of viruses and you have run "chkdsk," retrieve the lost files from backup copies.

How do I force Windows into repair mode? ›

Here's how:
  1. Press Windows logo key + L to get to the sign-in screen, and then restart your PC by pressing the Shift key while you select the Power button > Restart in the lower-right corner of the screen.
  2. Your PC will restart in the Windows Recovery Environment (WinRE) environment.

How do I run a full diagnostic on Windows 10? ›

In Windows 10, go to Start , then select Settings > Privacy > Diagnostics & feedback. In Windows 11, go to Start , then select Settings > Privacy & security > Diagnostics & feedback.

Can CHKDSK fix automatic repair? ›

If you can't identify any cause of a Windows 10 automatic repair loop, you can use some system repair tools to try to fix it. The chkdsk command starts a low-level check of your system drive for errors using the Check Disk utility. If it detects errors, it will automatically repair them.

Does CHKDSK fix everything? ›

Checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, chkdsk displays only the status of the volume and does not fix any errors.

Which is better CHKDSK R or F? ›

This is no much difference between chkdsk /f /r and chkdsk /r /f. The only difference is the sequence of two parameters /f and /r. /f means to fix errors on target disk and /r means to locate bad sectors and recover readable information. Mostly, the correct form should be chkdsk /f /r.

How do I run automatic repair on my computer? ›

In the command prompt window, type “chkdsk /r c:” and hit Enter. This command will check your drive for errors using the CHKDSK utility and automatically repair them if possible. Type “sfc /scannow” and hit Enter. This will check the integrity of Windows system files using the System File Checker tool.

How to fix a corrupted external hard drive without formatting using CMD? ›

Method2: Use CHKDSK to Fix File System Errors
  1. Type “cmd” in the search box on the taskbar and select Run as administrator.
  2. Enter the following command (make sure to replace X with the letter assigned to the hard drive you want to fix) and press Enter: chkdsk X: /R.
  3. Wait for CHKDSK to finish.
Dec 7, 2022

What happens if a file system is corrupted? ›

One symptom of a corrupt file system is that the system cannot locate, read, or write data located in the particular file system. To fix a damaged file system, you must diagnose the problem and then repair it.

Does formatting a drive fix corruption? ›

Yes, you can fix a corrupted hard drive by formatting it with a new file system. Logical hard drive corruption is often caused by a damaged or corrupted file system. Formatting the partition will correct this.

Can virus corrupted files be recovered? ›

Disconnect your computer from the internet. Scan it using anti-malware software. (Optional) Reinstall your operating system and format your drives. Restore lost files from a backup or using data recovery software.

How do I boot into repair options? ›

  1. At the Windows desktop, open the Settings, by pressing the Win + I keys together.
  2. Select System.
  3. Click on Recovery from the right-hand side menu.
  4. Under Recovery Options, click the Restart Now button on the right-hand side of the screen. ...
  5. The computer restarts and boots to an Options Menu.
  6. Click Troubleshoot.
Dec 19, 2022

How do I run Startup Repair from Command Prompt? ›

Click Repair your computer. Select the operating system that you want to repair, and then click Next. In the System Recovery Options dialog box, click Command Prompt. Type Bootrec.exe, and then press Enter.

How do I use boot repair? ›

The easiest way to use Boot-Repair is to create a live-USB disk of Boot-Repair-Disk (a disc starting Boot-Repair automatically), and boot on it. Remark : it is recommended to install the ISO on a live-USB (eg via UnetBootin or LiliUSB or Universal USB Installer). Do not burn it on a DVD if your boot is in EFI mode.

How useful is SFC Scannow? ›

System file check is a utility built into the Operating System that will check for system file corruption The sfc /scannow command (System File Check) scans the integrity of all protected operating system files and replaces incorrect, corrupted, changed, or damaged versions with the correct versions where possible.

Which is better SFC Scannow or CHKDSK? ›

SFC Scannow vs CHKDSK: Differences

You can use them to check and fix computer errors, but their functions are different. To check and fix hard disk errors or explore bad sectors on the disk, you should run CHKDSK. To detect, repair and restore corrupt system files, you should run SFC Scannow command.

Does SFC Scannow fix BSOD? ›

To begin with, it's recommended to run “sfc /scannow” for a complete scan process that can last up to 30 minutes. Ideally, this will repair all faulty system files and solve your blue screen problem.

Is SFC Scannow good to run? ›

The System File Checker (SFC) is a useful command-line utility to scan and repair protected system files in Windows. It's the easiest and fastest technique to assess the integrity of your computer, detect problems with installations and updates, and find replacements for missing or corrupted files where possible.

What does system file checker do? ›

System File Checker is a utility in Windows that checks for problems with files on your computer. To run it, follow these steps: Make sure you've installed the latest updates for Windows, and then restart your machine. To find out more, read Update Windows.

When should I run SFC? ›

The SFC (System File Checker) command is an excellent command to run if you are encountering issues with your Windows PC. From Blue Screens of Death (BSOD) to system errors, SFC can tell you a lot about what's causing the problem and will automatically fix it.

How do files get corrupted? ›

File corruption usually happens when there is an issue during the 'save' process. If your computer crashes the file being saved will likely be corrupted. Another cause might be damaged sections of your hard drive or storage media that might have viruses and malware.

Videos

1. DISM /Cleanup-Image /RestoreHealth & SFC /ScanNow not Working Windows 10, 8 & 7 | Fix All Errors
(ValiumMedia Tech)
2. SFC (SFC /SCANNOW) Is Not Working on Windows | System File Checker (SFC) Scannow won't start
(Zenith Dot)
3. Use SFC scannow to Repair Windows System Files
(MDTechVideos)
4. Fix Windows problems with the System File Checker
(Windows, computers and Technology)
5. How To Run Sfc Scannow Command In Windows 10 [Tutorial]
(MDTechVideos)
6. run this command to fix windows issue
(YouDontKnowIt)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated: 04/12/2023

Views: 6669

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.