- 17 Aug 2021
System File Checker is a utility tool that can be used to problems with Windows if it is not working properly. These problems might be due to corrupt or missing system files.
It is always desirable to have your system error free, but quite often we may face some errors, features not working or any other problems. Sometimes these problems arise after any latest update or installation of new software, driver or applications on your system. These may also occur due to any system file gone corrupt or missing. However you can use System File Checker, readily available in Windows to fix these problems. In this article, we will discuss how to fix corrupt or missing files problems using System File Checker (SFC). We will learn how to repair Windows 10 using System File Checker (SFC) tool both manually and automatically. Follow the below mentioned steps carefully: How to repair Windows 10 using System File Checker (SFC) . Open Command prompt as administrator (Type CMD in Windows search console > Right Click > Run as administrator) .Type the command “sfc /scannow” and press Enter . It will start verification process, detect problems and try to fix problems automatically (it may take few minutes). Once completed it will show any one of the following four results: Windows Resource Protection did not find any integrity violations – It means that system doesn't have any missing or corrupted files. Windows Resource Protection could not perform the requested operation – It means that a problem was detected during the scan, and an offline scan is required. Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log – It means that SFC detected and was able to fix the problem. Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log – It means that that you have to repair the corrupted files manually. e.g. How to view System File Checker scan logs .Open CMD as administrator .Type the command“findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfclogs.txt" and press Enter. .Open the sfclogs.txt file saved on desktop for detailed log report. This log file contains all the details of files scanned and verified and also the files which couldn’t be repaired due to any reasons. Now if the log file contains any files which were not repaired automatically you can do it manually. Follow the steps below to repair corrupt file using SFC manually. 1 How to repair corrupt files using System File Checker .Run CMD as an administrator .Type command “diskpart”and press Enter. .Type “List volume” and press Enter. .Note down the disk assignment letters and then type “Exit” and press Enter. . Type the command “sfc /scannow /offbootdir=D:\ /offwindir=E:\Windows” to run System File Checker offline and press Enter .Click X button too close and continue. After completion SFC will automatically fix problems with system files automatically. If SFC offline method did not worked for you try to fix corrupted system files using SFC manually. 2 How to fix problems in Windows 10 manually If System File Checker is unable to fix the corrupted or problematic files, you can try using manual method to fix them. Follow the following steps: A)First of all identify the damaged or corrupted system files. .Open CMD as an administrator .Type the command “findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfclogs.txt” and press Enter. .Check the desktop for “sfclogs.txt” file. . Open the file with Notepad and search for files with information that file couldn’t be repaired. B) How to repair System files manually .Open CMD as an administrator . Type “takeown /f C:\PATH\TO\FILE” and press Enter. (Path to file should be the corrupted file you want to repair) e.g. takeown /f C:\ProgramData\Microsoft\Windows\Models\\SBCModel.txt to take ownership of file .Grant full administrator access to the corrupted file by command “icacls C:\PATH\TO\FILE /Grant Administrators:F” (Make sure that path to the file is correct) e.g. icacls C:\ProgramData\Microsoft\Windows\Models\\SBCModel.txt /Grant Administrators:F .Type the following command to”copy C:\PATH\TO\SOURCE\GOOD\FILE C:\PATH\TO\DESTINATION\BROKEN\FILE” replace the corrupted files with a good-known version and press Enter (Make sure that you type correct source and destination path) .To verify the integrity of the system files type the command “sfc /verifyonly“ and press Enter: You can also use the command “sfc /verifyfile=C:\PATH\TO\REPLACED\FILE” to verify the integrity of the replacement file. (Make sure to use correct path to file) e.g.”sfc /verifyfile= C:\ProgramData\Microsoft\Windows\Models\\SBCModel.txt” After completion of the verification, if integrity check is passed, your corrupted file is repaired. However if you are still unable to repair the Windows 10 using System File Checker, then you may have to re-install a fresh copy of Windows 10 on your system.