When you attempt to run the System File Checker (sfc.exe /scannow command) to restore missing or corrupted system files, the following error message may be seen:
This happens if the Windows File Protection (WFP) is disabled in the registry.
Editor’s Note: If you’ve used nLite to build custom Windows installation package, you may have enabled the Disable SFC (File Protection) checkbox, which disables WFP and the System File Checker.
Enable the System File Checker
Use the following steps to re-enable WFP.
1. Click Start, Run. Type Regedit.exe and press ENTER.
2. Navigate to the following branch:
3. Double-click SFCDisable and set its Value data to 0
4. Exit the Registry Editor and restart Windows.
Download sfcenable.zip and run the attached REG file. Restart Windows for the change to take effect.