How To Fix Problems With Missing Or Corrupted Files When Windows Won’t Boot

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:\Windows\Logs\CBS\CBS.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:\Windows\Logs\CBS\CBS.log”.

How To Analyze The CBS.Log File

Go to “C:\Windows\Logs\CBS” 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.

Conclusion
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.

How to Stop Windows Update in Windows 10

Changing the network settings to turn off updates

The easiest way to turn off Automatic Updates is to simply unplug the network cable or, if you are testing in a virtual environment, to assign the virtual network adapter to an internal network. If you want to access the Internet with your Windows 10 machine, this option is not really the one you want.

If you connect your Windows machine through a WiFi network, you can set the connection to a metered connection. (Click the network symbol in the system tray and then right-click the connection.) This should prevent Windows 10 from downloading updates. A downside of this method is that it will affect the behavior of other applications, such as One Drive.

Disabling the Windows Update service

However, we have another option to turn off Automatic Updates altogether. All we need to do is stop the Windows Update service and make sure that it won’t start again. I recommend to first check if updates are currently downloaded; if so, wait until all updates are installed. Then, type “services” in the Windows 10 search box and click View Local Services.

Scroll down to Windows Update and double-click the service. Set the startup type to Disabled. If the service is already running, click Stop. After the service has stopped, click OK.

If you now click Check for Updates in the Windows Update app, you should see a reassuring error message:

Yup, that is all we wanted: “some problems installing updates.”

If you want to later enable Automatic Updates again, you have to first set the startup type of the Windows Update service to Manual and then start the service.

If you plan to switch Automatic Updates on and off frequently, you can do so with this tiny PowerShell script, which you have to run with administrator privileges: