Use the SFC scannow command to fix Windows 10 system file errors

If you notice that your computer frequently crashes or has problems during startup... the most likely cause is that Windows system files are corrupted, lost, or even changed when You install a program or software on your computer.

Although Windows 10 protects system files necessary for your computer to function properly, application files, drivers, and even Windows Update are quite good. However, in some cases errors may still occur.

Just like previous versions of Windows, Windows 10 also has a convenient integrated System File Checker (SFC). This utility will scan, verify, and repair any corrupted files on your system.

Use the SFC scannow command to fix Windows 10 system file errors Picture 1Use the SFC scannow command to fix Windows 10 system file errors Picture 1

1. How to use SFC /scannow on Windows 10

1. Press the Windows + X key combination to open the Power User Menu and then select Command Prompt (Admin). The reason is because you must run the SFC command under Admin.

2. On the Command Prompt window, enter the command below and press Enter:

sfc /scannow

Use the SFC scannow command to fix Windows 10 system file errors Picture 2Use the SFC scannow command to fix Windows 10 system file errors Picture 2

3. After the scanning process is completed, you will see one of the following messages on the screen:

Windows Resource Protection did not find any integrity violations : There were no lost or corrupted files on your system.

• Windows Resource Protection could not perform the requested operation : If this message appears, it means there was a problem during the scanning process and requires offline scanning.

• Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%LogsCBSCBS.log : You will receive this message if SFC was able to fix the problem you encountered. You can now move or view detailed information.

• Windows Resource Protection found corrupt files but was unable to fix some of them: In this case you must fix the corrupted files manually.

2. Run SFC /Scannow on other drives

SFC /Scannow can also be used to check and repair non-system files in other drives, such as D: or external hard drive, USB, SD card or other storage media. To run a scan on such drives, you need to slightly modify the command as shown below. The rest of the process is similar to above.

sfc/scannow/offbootdir=Drive Name: /offwindir=Drive name:windows

Use the SFC scannow command to fix Windows 10 system file errors Picture 3Use the SFC scannow command to fix Windows 10 system file errors Picture 3

3. View details of the SFC scan process

To view detailed information about a System File Checker stored on the CBS.Log file, you must copy a desktop-readable copy:

1. Press the Windows + X key combination to open the Power User Menu and then select Command Prompt.

2. On the Command Prompt window, enter the command below and press Enter:

findstr /c:"[SR]" %windir%LogsCBSCBS.log >"%userprofile%Desktopsfclogs.txt"

Use the SFC scannow command to fix Windows 10 system file errors Picture 4Use the SFC scannow command to fix Windows 10 system file errors Picture 4

3. Open sfclogs.txt on Desktop using Notepad. This file will contain all detailed information about scanned system files and information about files that cannot be repaired.

Use the SFC scannow command to fix Windows 10 system file errors Picture 5Use the SFC scannow command to fix Windows 10 system file errors Picture 5

Note : SFC scan details are only available when you scan in Windows, not available when you scan offline in Command prompt.

If you must know what SFC files cannot be repaired, use the Find function in the text application with the phrase 'cannot repair'. You can also use 'repair' and 'repaired' to see any files that have been repaired.

Use the SFC scannow command to fix Windows 10 system file errors Picture 6Use the SFC scannow command to fix Windows 10 system file errors Picture 6

Use "corrupt" to detect corruption in various applications. If the file cannot be easily repaired, then you need to replace and remove it. This is shown in the final status message: 'Windows Resource Protection found corrupt files but was unable to fix some of them' .

Use the SFC scannow command to fix Windows 10 system file errors Picture 7Use the SFC scannow command to fix Windows 10 system file errors Picture 7

4. Run SFC scan in Safe Mode

If you see a second status message during a system scan: 'Windows Resource Protection could not perform the reques'ted operation' then the SFC scan must be performed in Safe Mode. To access it, select 'Change advanced startup options' from the Start menu.

Use the SFC scannow command to fix Windows 10 system file errors Picture 8Use the SFC scannow command to fix Windows 10 system file errors Picture 8

Select 'Restart now' to start Windows 10 in Safe Mode.

A blue screen will appear. Using your keyboard's arrow keys, select Troubleshoot > Advanced options , which will lead to the next screen below.

Select 'Command Prompt' from the available options.

Sign in with your Windows user ID and password. It is better to use the Enter key to quickly navigate these screens.

Now, the Command Prompt screen displays on a blue background in Safe Mode. You can scan the system much faster here, and status verification and alerts don't take much time.

Use the SFC scannow command to fix Windows 10 system file errors Picture 9Use the SFC scannow command to fix Windows 10 system file errors Picture 9

5. Scan and repair system files on Windows 10 Offline

1. Press the Windows + I key combination to open the Settings application.

2. On the Settings interface, click Update & security.

3. Next click on Recovery.

4. Under Advanced startup, click Restart now.

Use the SFC scannow command to fix Windows 10 system file errors Picture 10Use the SFC scannow command to fix Windows 10 system file errors Picture 10

5. Click Troubleshoot.

6. Click to select Advanced options.

7. Click Command Prompt to boot your computer using only Command Prompt.

Use the SFC scannow command to fix Windows 10 system file errors Picture 11Use the SFC scannow command to fix Windows 10 system file errors Picture 11

8. During the reboot process, you will receive a notification to enter username (user) and password to continue.

9. Whenever you need to run SFC outside of Windows, you must tell the utility exactly where the Windows installation files are located.

On the Command Prompt window, enter the following command line so that the utility understands the location of the Windows and System Reserved partition:

wmic logicaldisk get deviceid, volumename, description

Use the SFC scannow command to fix Windows 10 system file errors Picture 12Use the SFC scannow command to fix Windows 10 system file errors Picture 12

10. Enter the following command into the Command Prompt window and press Enter:

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

Use the SFC scannow command to fix Windows 10 system file errors Picture 13Use the SFC scannow command to fix Windows 10 system file errors Picture 13

Note:

In the treen command, use /offboodir to switch the specific drive name of the System Reserved partition, in this case C, and /offwindir to switch the specific location of Windows files, in this case D:Windows.

11. After the scanning process ends, close the Command Prompt window.

12. Click Continue to exit and return to Windows 10.

6. Repair system files on Windows 10 manually

If System File Checker cannot fix one or more errors, you will have to fix these files manually.

Open the sfclogs.txt file to see which files are corrupted, search for the file locations and follow the steps below:

1. Press the Windows + X key combination to open the Power User Menu, then select Command Prompt (Admin).

2. On the Command Prompt window, enter the command below and press Enter:

takeown /f C:Path-and-File-Name

Note:

Replace C:Path-and-File-Name with the failed path and file name. Such as C:WindowsSystem32appraiser.dll.

3. Allow access to corrupted files under Admin rights by entering the command below into Command Prompt and pressing Enter:

icacls C:Path-and-File-Name /Grant Administrators:F

4. Replace the files in the asked section by copying the command below and pressing Enter:

copy C:Path-SOURCE-and-File-Name C:Path-DESTINATION-and-File-Name

Note:

In the above command replace C:Path-SOURCE-and-File-Name with the good path and file names, and replace C:Path-DESTINATION-and-File-Name with the destination path and names of the failed files.

Such as:

copy D:Filesappraiser.dll C:WindowsSystem32appraiser.dll

5. Type Yes then press Enter to confirm the overwrite.

Use the SFC scannow command to fix Windows 10 system file errors Picture 14Use the SFC scannow command to fix Windows 10 system file errors Picture 14

After replacing the files, you can enter the command SFC /verifyonly into the Command Prompt window and press Enter to check the integrity of all files and check which files are corrupted to fix.

Additionally, if you only want to fix certain files, you can check the integrity of each file by using the command:

sfc /VERIFYFILE=C:Path-and-File-Name

For example:

sfc /VERIFYFILE=C:WindowsSystem32kernel32.dll

Refer to some more articles below:

Good luck!

4 ★ | 2 Vote