Get the App
SLTechnology News&Howtos  ›  Servers  › 

Sfc repairs system files

Shulou Source: shulou.com Published: 2022-06-02 12:48:55 10月04日 Update

Sfc

1.sfc is: systemfilechecker

two。 Function: check the correctness of system files and can be repaired

3. Parameters:

/ scannow scan and repair system files

/ verifyonly scans only system files

/ scanfile scans the integrity of the specified file and tries to fix it if a problem is found

/ verifyfile verifies the integrity of the specified file and does not repair it.

/ offbootdir offline repair, specifying the location of the offline boot directory

/ offwindir offline repair, specifying the location of the offline windows directory

4. Usage:

Sfc / scannow

Sfc / verifyfile=c:\ windows\ system32\ cmd.exe

Sfc / scanfile=d:\ windows\ system32\ cmd.exe

Sfc / scannow / offbootdir=d:\ / offwindir=d:\ windows

5. A little understanding:

The main function of sfc is to check the system files and try to repair them. Repair: overwrite the problematic system files with the backup files in the system32/dllcache folder

5.2 sfc provides the ability to repair offline files, which in this case refers to the repair of system files in other locations where backup files are stored. For example, the command sfc / scannow / offbootdir=d:\ / offwindir=d:\ windows indicates that the defective files are repaired with the files in the windows folder under the d disk.

5.3 sfc can work when the system can be booted or not.

6. A little thought:

After learning the usage and function of the command, the most important thing is to know under what circumstances the command can be used. The function of sfc is to repair system files, so the corresponding scenario should be that the system files are corrupted, such as: win+x does not work, gedit.msc does not open, regedit cannot be opened, blue screen, network is not working, and so on.

7. Reference:

Http://525042.blog.51cto.com/515042/737452

Tags: Files systems offline functions locations commands backups integrity folders methods directories problems attempts checks bad functions parameters references scenarios situations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker Apple Shulou Information OPPO Reno