Everything To Know About sfc /scannow & How It Repairs Windows Files (2024)

Everything To Know About sfc /scannow & How It Repairs Windows Files (1)

If and when there is an issue with the system files, windows can malfunction. System files are crucial files and kept safe by Windows, where no one can access it. However, some applications, viruses, driver updates, and even Windows updates can alter or damage them.

In such situations, instead of restoring Windows, you can use SFC utilityprovided by Windows 10. SFC (System File Checker) is a utility available in Windows Operating System (OS) from Windows 7. It is present in C:\Windows\System32folder under the name sfc.exe. It is a powerful utility that is run by a tiny command sfc /scannow from the command prompt.

System File Checker is associated with Windows Resource Protection, and hence, it also protects the registry keys and folder, along with crucial system files. Let’s explore the details and understand all about SFC utility, or sfc /scannowcommand.

What Does sfc /scannow Do?

As the name says, it is a system file checker. In simpler terms, it checks all the system files, including .dll and .sys files. sfc /scannowcommand scans and finds corrupt or damaged system files. Then, it replaces corrupted system files with a better one from its repair source.

sfc /scannow also gives you a detailed report of the scan in its logs file. So, if you wish to know the details after each scan, you can see the log file. The details of how to access the sfc log file and interpret it is mentioned in the latter section of the article.

How to Execute sfc /scannow?

If you can log in to the system normally, that is, you are not stuck on the blue or black screen, then you can use this method to execute sfc /scannow.

Step 1: Type cmdin the start search menu, right-click on Command Prompt and select Run as administrator.

Everything To Know About sfc /scannow & How It Repairs Windows Files (2)

If you don’t run command prompt as an administrator, you will get the error “You must be an administrator running a console session in order to use the sfc utility.”, while executing sfc /scannow

Step 2: Type sfc /scannowin the command prompt and hit Enter.

Everything To Know About sfc /scannow & How It Repairs Windows Files (3)

The scanning process will take time. Do not close your command prompt in between the process.

If there are any corrupted files in Windows 10, the message “Windows Resource Protection found corrupt files and successfully repaired them” will come on your screen, as shown in the above image.

If there are no corrupt files on your system, you will get a message “Windows Resource Protection did not find any integrity violations.

Step 3: If the Windows system file checkerrepaired your system files, restart your PC.

Once you restart the PC, Windows may start working normally without any errors or issues.

How to Execute sfc /scannowOffline or During Boot Time?

There might be situations or issues when you need to run an sfc scannowoutside Windows, which is generally during the boot time. Sometimes, Windows can prevent you from entering the system. It can happen due to the display of blue and black screen in a loop. During such situations, you can use advanced repair mode to run system file checkerin Windows 7/8/10.

Step 1:If you cannot log in to the system, press the power button,and wait till the laptop starts. As soon as you see the Start screen, press the power button again to shut it down. Repeat this process until you seePreparing Automatic Repair Screen.

If you wish to run the sfc command offline, then you can log in to your computer as usual and follow the mentioned steps.

PressWindows key + I to open Settingsand then click on Update & Security.

Next, go to Recoveryfrom the left panel and click on Restart now under Advanced startup. Now, this will restart your PC in repair mode.

Everything To Know About sfc /scannow & How It Repairs Windows Files (4)

You can use Windows installation media to boot your computer and navigate to the repair screen and continue the further process, as mentioned below.

Step 2: The Repair screen will appear.

Navigate to Troubleshoot ➞ Advanced options ➞ Command Prompt.

Step 3:Select theAdmin account when prompted to do so.

Now, enter the password for the same.

Step 4:To perform the sfc scanduring boot time, you need to tell sfc where Windows is installed on your machine.

The drive letter can be different from where you see Windows daily when logged in.

Before the boot process, Windows can be on a different drive. To check this, execute the command –wmic logicaldisk get deviceid, volumename, description

Everything To Know About sfc /scannow & How It Repairs Windows Files (5)

Note down the drive where Windows is present. In our case, it is C. It can be D or any other letter when you execute the command yourself.

Step 5: Execute sfc /scannow /offbootdir=c:\ /offwindir=c:\windows.

Everything To Know About sfc /scannow & How It Repairs Windows Files (6)

Here, instead of letter C, you need to use the drive letter, where Windows is present, as mentioned in step 4.

As mentioned above, as there is no corrupt file, the message after the sfc scan is “Windows Resource Protection did not find any integrity violations.”

Howto View SFC Log File?

If you see a message that “Windows Resource Protection found corrupt files and successfully repaired them,” then you can see the log file to get more details.

Whenever you run sfc /scannow to repair any system files or registry keys in Windows 10, it updates about it in the log file.

You can navigate to C:\Windows\Logs\CBS and open theCBS.logfile via the text editor application. The path mentioned assumes that Windows is installed on the C drive. If it is installed on D or E drive, you need to change the path accordingly.

How to Read CBS Log File?

CBS log file has many other entries. So, if you are specifically looking for entries related to system file checkerinWindows 10/8/7, then you can copy the scan related entries into the new file. A simple command can do this.

You have to execute the below-mentioned command just after you see the repair message on the screen.

findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfclogs.txt"

After executing this command, you can check a file named SFClogson your desktop.

When you open the file, you can get to know which crucial system files are repaired.

Everything To Know About sfc /scannow & How It Repairs Windows Files (7)

Solutions to “Windows Resource Protection could not perform the requested operation.”

If, while executing sfc /scannowcommand, you get a message “Windows Resource Protection could not perform the requested operation,” then you need to work around some solutions.

1. Run chkdsk command.

2. Change the security descriptors using ICACLS command.

3. Run sfc /scannow in safe mode.

1. Run chkdsk Command

If there are any issues or problems in the hard drive of your computer, the sfc utilitycannot function well. The chkdsk command can scan your hard drive and also fix the errors for you. You can run chkdsk command from the command prompt.

OpenCommand Promptas Administrator and execute the command mentioned below.

chkdsk /r

After executing the command, you will get a message “Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts?’”

Press Yto close the command prompt, and restart the PC.

It will start the scanning and repairing process of the hard drive. Once done, check if the sfc /scannow command works.

2. Change The Security Descriptors Using ICACLS Command.

Security descriptors store the security information of the securable Windows object. If you are facing issues while executing the sfc /scannow command, it might be because SFC is not getting access to the winsxs folder.

So, to solve “Windows Resource Protection could not perform the requested operation” error, you need to change the security descriptors.

Open Command Prompt asAdministrator, type the below-mentioned command and hitEnter.

ICACLS C:\Windows\winsxs

After the commands finish its execution, you can restart the PC and check if theSFC scanworks normally.

3. Run sfc /scannowin safe mode

You can also restart the PC in safe mode and try executing the sfc command. The safe mode starts only with the required drivers and software. So, if any third-party applications are causing trouble in usingSFC utility, safe mode can solve it.

If sfc /scannowworks in safe mode, you can try uninstalling the recently added software and applications. At times, some third-party software or app can cause trouble while using utilities.

Conclusion

SFC utility can solve many Windows related problems caused by corrupt and damaged system files. The above article also shows how to interpret or read the scan logs.

Even if your Windows has slowed down a bit, you can try executing sfc /scannow command and check if the corrupted system files were the trouble makers. If you are stuck with some critical error, you can run the sfc command without entering the Windows system and try to resolve the problem.

If you want to know more about “how to” repair system files, check this guide toScan for and Fix Corrupted Files in Windows 10 with PowerShell

Everything To Know About sfc /scannow & How It Repairs Windows Files (2024)

FAQs

How to repair Windows 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 . System file checker utility checks the integrity of Windows system files and repairs them if required. After the process is complete, reboot the computer.

What does sfc scannow actually do? ›

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 do I fix corrupt files found by 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.

Should you restart your PC after sfc scannow? ›

Restart your computer if sfc /scannow repaired files. System File Checker may or may not prompt you to restart but even if it doesn't, you should restart anyway. Repeat whatever process caused your original problem to see if sfc /scannow resolved it.

How to fix Windows corrupt files? ›

How to Recover Corrupted Files
  1. 1 Restore Previous Versions.
  2. 2 Use System Restore.
  3. 3 The Best Corrupted Files Recovery Software - Recoverit.
  4. 4 Use the SFC /Scannow command.
  5. 5 Use DISM tool.
  6. 6 Use the CHKDSK command.
  7. 7 Perform SFC scan before Windows 10 starts.
  8. 8 Reset your Windows 10.

How to do a Windows repair? ›

To do so, go to Windows Search and select Change Advanced Startup Options. Restart the computer and click on Troubleshoot, then select Advanced Options and click on Startup Repair. Follow the prompts and choose an account. The repair process will scan the computer and attempt to fix any startup problems.

Does sfc scannow fix everything? ›

SFC /ScanNow can fix corrupted system files but not corrupted configurations. If it reports that it has found errors it cannot fix, then the WinSxS component store is corrupted too.

Should I run CHKDSK or sfc first? ›

CHKDSK scans your hard drive for errors and bad sectors, and you should run it if your computer isn't booting properly. SFC scans and repairs Windows system files, so run it when you experience program crashes or missing DLL errors.

When should I use sfc? ›

The Dism and SFC commands are used to find and repair corrupted files on Windows. You should run these commands when you are receiving error messages, or your computer is slowing down. If you want to run these commands preventively you can do it once a month.

What if SFC cannot repair files? ›

Run SFC in Safe Mode If SFC Cannot Repair. If Windows resource protection found corrupt files but was unable to fix some of them, you can run SFC in Safe Mode to fix the error.

What is the difference between SFC scannow 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.

How many times should I run SFC? ›

As often as you identify that WIndows has a fault. or if, as the SFC tutorial suggests, "some Windows functions aren't working".

What happens after a SFC scan? ›

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. After the process is complete, reboot the computer.

Should I run SFC or dism? ›

sfc /scannow is faster, but dism /online /cleanup-image /checkhealth should be run always first if the goal is to gather information to be able to diagnose what might be causing the corruptions in question.

How to repair Windows 10 with Command Prompt? ›

How do I repair Windows 10 with command prompt?
  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.
Feb 19, 2024

Is it okay to run sfc scannow? ›

Is SFC Scannow Good to Run? Running the System File Checker Scannow command is really beneficial for the system but to some extent only. You need to remember that executing the SFC Scannow command can change the settings and set them back to the default state.

Top Articles
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 6198

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.