If Windows doesn’t load because of missing or corrupt system files, follow this tutorial to start the Command Prompt: How To Start The Command Prompt When Windows Doesn’t Boot?.
In the Command Prompt window, use the sfc command with two additional parameters:
1.) /offbootdir – used to specify the partition that contains the system files that are required for booting Windows. In most cases, this partition is going to be “C:”.
2.) /offwindir – used to specify the location of the Windows directory. In most cases, this folder is “C:Windows”.
3.) You will need to type something like: sfc /scannow /offbootdir=c: /offwindir=c:windows and press Enter.
The “translation” for this command is the following: scan the Windows folder located on the boot partition “C:” and fix missing or corrupt system files.
Arm yourself with some patience because running this command will take quite a bit of time. When the process finishes, you are informed that the verification is 100% complete. If problems were found, you are also informed. The problematic files that cannot be fixed are always mentioned in a log file named CBS.log. This file is found in the Windows folder, at this location: “C:WindowsLogsCBSCBS.log”.
If everything is fine with your system files, you will receive a message saying that: “Windows Resource Protection did not find any integrity violations”.
How To Fix Problems With Missing Or Corrupted Files When Windows Boots
Type the command: sfc /scannow and press Enter.
The /scannow parameter forces the SFC tool to scan the integrity of all system files and repair problematic files when possible.
Again, arm yourself with some patience. The tool takes a long time to run. At least a couple of minutes. When it’s done, you are informed that the verification is 100% complete. If problems were found, you are also informed.
In our case, SFC found corrupt files and it was unable to fix some of them.
The problematic files that cannot be fixed are always mentioned in a log file named CBS.log. This file is found in the Windows folder, at this location: “C:WindowsLogsCBSCBS.log”.
How To Analyze The CBS.Log File
Go to “C:WindowsLogsCBS” and open the CBS.log. This file is quite large and it takes a while to open it in Notepad. If possible, open it with a different application like Notepad++ orMicrosoft Word, so that it is opened faster and you have an easier time working with it.
Scroll towards the end of the file and search for entries that start with the text: “Cannot repair member file”. There you will find the missing or corrupted system file(s) that cannot be repaired.
Search for information online about the file(s) mentioned in this log file and from there on you might get an idea on how to fix your problems.
Hopefully you will never need to use the SFC command to repair Windows systems files. However, if you do have issues, don’t hesitate to consider using it. This tutorial should come in handy when you have to deal with system files being corrupted or missing.
Subscribe To Our Newsletter
Thank you for subscribing.
Something went wrong.