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.
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.