System File checker tool in Windows
Opening Command Prompt
As SFC requires scanning of system files,Administrative privileges are required in command prompt,better known as elevated command prompt.Use directions as per your OS:
Windows 10 and Windows 8
Windows 7 and Windows Vista
b. Type “cmd” without quotes in the search box.
c. On the left pane, right click on the “cmd” option and select “Run as Administrator”.
STEP 2-Run SFC command
STEP 3: Analyzing the results:
- Windows did not find any integrity violations (a good thing)-No corruptions found
- Windows Resource Protection found corrupt files and repaired them (a good thing)-Corrupt files found but repaired
- Windows Resource Protection found corrupt files but was unable to fix some (or all) of them (not a good thing)-Corrupt files found but not repaired
- Open an elevated command prompt as described above.
- At the command prompt, type the following command, and then press ENTER:
findstr /c:"[SR]" %windir%LogsCBSCBS.log >"%userprofile%Desktopsfc.txt"
Note The Sfc.txt file contains details from every time that the System File Checker tool has been run on the computer. The file includes information about files that were not repaired by the System File Checker tool.
- Now see the entry somewhat like this: Cannot repair member file XXXXX,the source file is also corrupted.
- Take administrative ownership of the corrupted system file. To do this, at an elevated command prompt, copy and then paste (or type) the following command, and then press ENTER:
takeown /f Path_And_File_Name
Note The Path_And_File_Name placeholder represents the path and the file name of the corrupted file. For example, type takeown /f C:windowsopencl.dll
- Grant administrators full access to the corrupted system file. To do this, copy and paste (or type) the following command, and then press ENTER:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
Note The Path_And_File_Name placeholder represents the path and the file name of the corrupted file. For example, type icacls C:windowssystem32opencl.dll /grant administrators:F.
- Replace the corrupted system file with a known good copy of the file. To do this, copy and paste (or type) the following command, and then press ENTER:
Copy Source_File Destination
Note The Source_File placeholder represents the path and file name of the known good copy of the file on your computer, and the Destination placeholder represents the path and file name of the corrupted file. For example, type copy E:tempopencl.dll C:windowssystem32opencl.dll.