How does Win10 use file inspection tools to repair damaged system files?

  

After using the Win10 system for a period of time, it is possible that the system file is damaged due to software or incorrect operation. Microsoft has a built-in file checker tool in the Win10 system, which helps users detect damaged files and automatically recover them. .

Operation steps:

1. Open the search of Win10 system (CTRL+F), input CMD directly in the search bar, and then open as administrator;

2 After opening, at the command prompt, type sfc /scannow and press Enter:

Tip: The sfc /scannow command will scan all protected system files and use them at %WinDir%\\ Replace the corrupted file with a cached copy in the compressed folder of System32\\dllcache.

The %WinDir% placeholder represents the Windows operating system folder. For example C:\\Windows.

Note: Do not close this “command prompt" window before verifying 100% completion. The scan results will be displayed at the end of this process.

3, return results:

After the process ends, you may receive one of the following messages:

1) Windows Resource Protection could not find any integrity violations.

This means that you do not have any missing or corrupted system files.

2) Windows Resource Protection cannot perform the requested operation.

To resolve this issue, execute the System File Checker in Safe Mode and ensure that the PendingDeletes and PendingRenames folders exist under %WinDir%\\WinSxS\\Temp.

3) Windows Resource Protection found the corrupted files and successfully fixed them.

4) Windows Resource Protection found corrupted files but could not repair them.

To manually repair corrupted files, look at the details of the System File Checker process to find corrupted files, and then manually replace the corrupted files with a copy of a known good file (users can use it normally) Copy the files in the CBS.log list to the same file in the same version system to the faulty computer).

Also, if the user can't fix it with the SFC file checker, you can also try the DISM command and need to be connected.

[Run the following command as an administrator]:

DISM.exe /Online /Cleanup-image /Scanhealth

DISM.exe /Online /Cleanup-image /Restorehealth< Br>

The first command is to scan all your system files and compare them with the official system files.

The second command is to restore those different system files to the official source files of the system, similar to reloading.

The advantage of this method is that after repairing those system files, the source files will be restored to the official version, only the system files, other third-party software and user settings are completely reserved, of course, this is to cost 15- 20 minutes of time. .

System file corruption will cause various errors, and even the system will not start properly. Therefore, if it is damaged, it should be repaired by the above method.

Copyright © Windows knowledge All Rights Reserved