First, use the System File Checker tool (SFC.exe) to detect which file is causing the problem, and then replace the file with the following steps:
1, first click the Start menu, enter CMD in the search box, then the mouse right click cmd Select "Run as Administrator";
2. In the Open Command Prompt window, type the Sfc/scannow command, and then press ENTER (hint: the "sfc/scannow" command replaces all protected system files and incorrect versions with the correct Microsoft version);
If you want to determine which files might not be able to repair the System File Checker tool, follow these steps:
1, also open the command prompt to choose to run with administrator privileges, and then enter the following command and return;
findstr status "[SR]"%windir%logscbscbs.log >%userprofile%desktopsfcdetails.txt
(Note: The Sfcdetails.txt file contains details that each time you have run the System File Checker tool on your computer, which contains information about files that cannot repair the System File Checker tool, validates dates and times, and determines the last time the System File Checker tool was run. )
3, then in the search program and file, type Sfcdetails.txt, and then enter;
The Sfcdetails.txt file uses the following format:
Date/Time SFC details
The following sample log file contains files that cannot be repaired:
2007-01-12 12:10:42, Info CSI 00000008 [SR] Cannot
Repair member file [l:34{17}] "Accessibility.dll" of accessibility, Version =
6.0.6000.16386, PA = Processor_architecture_msil (8), Culture neutral,
Versionscope Neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type
Neutral, TypeName neutral, PublicKey neutral in the store, file is missing
Third, if the System File Checker tool cannot repair a file, follow these steps:
1, first at the command prompt, input or copy paste the following command, and then enter;
takeown/f Path_and_file_name
For example, enter takeown/f E:windowssystem32jscript.dll.
2, input or copy paste the following command, and return to the administrator to grant full access to the file;
ICACLS path_and_file_name/Grant admin: F
For example, type icacls e:windowssystem32jscript.dll/grant admin: F.
3. Enter or copy the following command, and return to replace the file with a copy of the known good file:
Copy Path_and_file_name_of_source_file path_and_file_name_of_destination
For example, type copy E:empjscript.dll E:windowssystem32jscript.dll.