Windows system using sfc /scannow command to repair system files tutorial

  

sfc /scannow is a powerful Windows system file retrieval repair tool. If the system file is overwritten by a malicious Trojan. You can use this tool for comparison work and then repair the system files. However, after the system files are destroyed, even Windows can't get in, so how can I use this command? First, you need a Windows installation disc. .

1. Put the installation CD, boot with CD-ROM

2. Select Repair Your Computer


3. Select the system disk (this time) Your system disk will change from C drive to D drive, don't worry)


4. Select Command Prompt to enter command line mode


because It is in the PE environment, so the SFC /SCANNOW command is not used, the system will tell you that the process is occupied, such as Barabala Barra. This will use the parameters of sfc /scannow.


Copy the code
The code is as follows: sfc /scannow /offbootdir=d:\\ /offwindir=d:\\windows

offbootdir refers to the partition where the system is located offwindir It refers to the directory where the system is located

and then it will be the same as what we did in Windows. Wait patiently.

PS: If you only need to check a specific file, you can use the following command
copy the code
code as follows: sfc /scanfile=d:\\windows\\system32\\zipfldr.dll /offbootdir=d:\\ /offwindir=d:\\windows

Copyright © Windows knowledge All Rights Reserved