How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (2024)

The System File Checker (SFC) program is the traditional Windows utility you can use to repair corrupt system files. It scans for any corruption or integrity issues with the protected files in your Windows system and attempts to repair them.

You need to append theScannowswitch on the SFC Command to check for and fix such issues. However, there are other things you need to consider as well.

How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (1)

For instance, just running the default Command Prompt may not execute this command. Sometimes, you will also need to repair your files without logging in to your account. So, I will explain how you can run this command in all situations in this article.

Working Mechanism of SFC /Scannow

How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (2)

Before Windows Vista, System File Checker would use the cached copy of the system files in a compressed folder inside the%WinDir%\System32\dllcachedirectory for scanning and repairing corrupt system files.

Now, however, Microsoft integrated SFC inside the Windows Resource Protection (WRP) feature. This feature prevents outside sources from replacing the crucial built-in system files and registry data.

Wheneveryou run SFC /Scannow, Windows Resource Protection performs the following operations to scan and repair the protected files:

  • First, it checks the hash signature of the files and compares it with the registry entries in the COMPONENTS registry hive to see if they are in the proper location.
  • The system files are hard-linked to the components inside the WinSxS folder. Only the files inside the folder actually exist, and the usual system files simply link to these components. So, if WRP finds inconsistencies, it checks system files against the contents of the%WinDir%\WinSxSor%WinDir%\WinSxS\Backupfolders (Windows Component Store).
  • It looks out for all broken hard links and repairs them. This way, it recreates all missing or corrupt files in their proper location.

How to Use SFC /Scannow on Online Windows?

You can use the Elevated or Admin-level Command Prompt to run the SFC utility in an Online system. Here, online refers to the Windows environment you are currently using. That is to say, if you are logged in inside a Windows user account, your Windows is online.

1- Open Run by pressing Windows key + R.

2- Typecmdand press Shift + Ctrl + Enter to run theCommand Prompt as admin.

3- If you only want to verify system file integrity, you can typesfc /verifyonlyand press Enter.

4- To scan and repair all file integrity issues, typesfc /scannowand press Enter.


How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (3)

If it did not find any issues, it would return the message “Windows Resource Protection did not find any integrity violations.”

If it found the issues and successfully resolved them, you will get “Windows Resource Protection found corrupt files and successfully repaired them.”

But there are two situations where it does not provide the desired result:

  • If WRP fails to resolve the issue, it gives the “Windows Resource Protection found corrupt files but was unable to fix some of them” error message.
    You can usually resolve this issue by running the commandDISM /Online /Cleanup-Image /RestoreHealthand thensfc /scannow
  • In some cases, WRP can’t run or scan the files. In such scenarios, running SFC gives the “Windows Resource Protection Could Not Perform the Requested Operation” error message.

It also creates a log file,%windir%\Logs\CBS\CBS.log, which includes the details on the process.

You can check the log by entering the commandfindstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"on Prompt to create a readable .txt file on your Desktop.

How to Use SFC /Scannow on Offline Windows?

You may need to runSFC /Scannowon an offline Windows environment in some scenarios. If you are unable to log in to your account or if you have a multi-boot system, the program may not find the OS you wish to repair.

You canboot into the Advanced Startupor Windows Recovery environment and then run this program in such cases.

You will need to specify the offline Windows and the boot directory for this method. Also, the recovery environment temporarily reassigns the drive letter for these directories, so you need to figure them out as well.

1- First, you need to get to the Advanced Startup Environment. There are various methods to do so, such as:

  • Force shutdown your computer three or four times and then power it up again. On the fourth boot, the computer will load the Startup Repair screen. Here, clickAdvanced options.
  • Click on the power icon on the login screen or start menu. Press and hold Shift key while clickingRestart>Restart Now.
  • Boot using aWindows installation media. Set the language preferences, and on the Install screen, selectRepair your computer.

2- Then, go toTroubleshoot>Advanced Options>Command Prompt.


How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (4)

3- Typebcdeditand press Enter.

4- Note the following parameters underWindows Boot Loader:

  • device
  • osdevice
  • systemroot


How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (5)

Enter the command below while replacing the values from the parameters:

sfc /scannow /offbootdir=“device drive letter” /offwindir=“osdevice drive letter\systemroot”For instance,sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows


How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (6)

END

How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (7)
How to Use SFC Scannow Command to Repair Windows 11 - Tech To Geek (2024)

FAQs

How do I repair Windows 11 with sfc scannow? ›

Windows 11, Windows 10, and Windows 8 or 8.1

On the User Account Control (UAC) prompt, click Yes. In the command prompt window, type SFC /scannow and press Enter . The system file checker utility checks the integrity of Windows system files and repairs them if required.

How do I fix corrupt files on Windows 11? ›

Open an elevated Command Prompt (i.e., with admin rights) and then run the sfc /scannow command to see if that fixes your corrupted files issue. It's a powerful tool for checking and fixing system files, and if any of them are corrupted, it will replace them with ones that aren't.

What will the sfc scannow command help us to fix? ›

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 corrupt files found in sfc scannow? ›

To fix sfc scannow could not repair some files problem, you can try the following approaches:
  1. Check and repair hard drive errors.
  2. Run DISM Command to fix corrupt files.
  3. Run sfc / scannow in safe mode.
  4. Run SFC from the Windows Recovery Environment (WinRE)
  5. Perform a Windows 10 repair install.
Apr 19, 2024

How do I repair software in Windows 11? ›

  1. In the search box on the taskbar, type control panel and select Control Panel from the results.
  2. Select Programs > Programs and Features.
  3. Right-click the program you want to fix and select Repair, or if that's not available, select Change. Then follow the directions on the screen.

How to repair Windows 11 with SFC and DISM tools? ›

Fix and Repair Windows 11 Disk Error with SFC and DISM Alternative Tool
  1. Right-click the target partition that has a problem.
  2. Choose "Advanced" > "Check File System".
  3. Confirm if you want to hide the partition or not.
  4. In the Check File System window, check the "Try to fix errors if found" option.
Apr 22, 2024

How to fix all corrupted files using cmd? ›

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. The %WinDir% placeholder represents the Windows operating system folder.

How to repair Windows 11 automatic repair? ›

[Windows 11/10] Troubleshooting - Automatic Repair (Startup Repair) on Boot
  1. Solution 1: Remove External Devices and Restart.
  2. Solution 2: Continue to Windows.
  3. Solution 3: Run Startup Repair.
  4. Solution 4: Perform System Restore.
  5. Solution 5: Perform a Windows Reset.
  6. Solution 1: Remove External Devices.
Feb 6, 2024

What is the command to repair Windows 11? ›

Here is how to repair Windows 11 with it. Step 1: Launch Command Prompt as administrator. Step 2: Type chkdsk f: /f /x /r and press Enter (f: refer to drive f and you can replace it based on your needs). Then, it will start to scan for errors and repair them.

What is the difference between SFC scannow command and CHKDSK? ›

SFC analyzes your system files while CHKDSK searches your hard drive and DISM scans and patches faulty files in the component store of the Windows system image, allowing SFC to function correctly. Make a backup of your disk partition before executing DISM, just in case anything goes wrong during the process.

Should I run CHKDSK or SFC first? ›

There is no specific order to CHKDSK, SFC, and DISM, as why you run each tool depends on the issue you're experiencing. However, if you run SFC and it finds corrupt files and other issues, you should then run DISM to fix the Component Store and then run SFC again to fix any broken files.

Why won't my SFC scannow work? ›

Check if the machine is connected to a domain network or not. If yes, try to disable or remove domain applications/VPN. Perform a clean boot and try performing sfc scan. To run a SFC scan using cmd 'administrator'.

How do I repair corrupt system files with DISM and SFC? ›

Open Command Prompt or PowerShell as administrator, then run "sfc /scannow" to fix corrupted Windows System Files. If SFC fails to run properly or cannot repair the files, run "DISM /Online /Cleanup-Image /RestoreHealth" to fix any remaining issues.

How do I manually fix corrupted files? ›

How to Fix Corrupted Files
  1. Perform a check disk on the hard drive. Running this tool scans the hard drive and attempts to recover bad sectors. ...
  2. Use the CHKDSK command. This is the command version of the tool we looked at above. ...
  3. Use the SFC /scannow command. ...
  4. Change the file format. ...
  5. Use file repair software.
Feb 25, 2022

What command removes corrupted files? ›

Deleting Corrupted Files Easily

On Windows, you can also open Command Prompt as an administrator and use del /F /Q /A <filepath>. On a Mac, delete corrupted files in Terminal using the command sudo rm -R filename.

What does SFC Scannow do in Windows 11? ›

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. The %WinDir% placeholder represents the Windows operating system folder.

What does SFC do in Windows 11? ›

System File Checker is a utility in Windows that checks for problems with files on your computer.

What is the difference between SFC and DISM in Windows 11? ›

What is the Difference Between SFC, CHKDSK, and DISM? SFC analyzes your system files while CHKDSK searches your hard drive and DISM scans and patches faulty files in the component store of the Windows system image, allowing SFC to function correctly.

Top Articles
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 5909

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.