When your PC acts up, the first thing most users do is run the sfc /scannow command. However, it can be incredibly frustrating to see the error message: "Windows Resource Protection found corrupt files but was unable to fix some of them." This happens when the System File Checker (SFC) identifies the damage but cannot find healthy versions of the files in the local Windows Component Store to perform the replacement.
If you are stuck in this loop on Windows 11 or 10, follow these expert-verified steps to repair your system files manually.
Step 1: Run the DISM Tool (RestoreHealth)
The Deployment Image Servicing and Management (DISM) tool is the most effective way to fix an SFC failure. While SFC uses local files to repair the OS, DISM connects to Windows Update servers to download fresh, healthy versions of corrupted components.
- Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
- Type the following command and press Enter: DISM /Online /Cleanup-Image /RestoreHealth
- Note: This process may seem stuck at 20% or 40%; do not close the window. It needs time to communicate with Microsoft servers.
- Once the operation completes successfully, restart your computer and run sfc /scannow again to verify the fix.
Step 2: Run SFC in Safe Mode
Sometimes, third-party drivers or background applications (like Antivirus software) lock the system files, preventing SFC from replacing them. Running the scan in Safe Mode bypasses these interruptions.
- Go to Settings > System > Recovery.
- Locate Advanced startup and click Restart now.
- After the restart, go to Troubleshoot > Advanced options > Startup Settings > Restart.
- Press 4 or F4 to enable Safe Mode.
- Once in Safe Mode, open Command Prompt as Administrator and try running sfc /scannow again.
Step 3: Check the Hard Drive for File System Errors (CHKDSK)
If your hard drive or SSD has "bad sectors" or file system metadata corruption, Windows cannot write the repaired files to the disk. Using the Check Disk utility can solve this.
- Open Command Prompt (Admin).
- Type chkdsk c: /f /r and press Enter.
- You will see a prompt asking to schedule the scan for the next reboot. Type Y and press Enter.
- Restart your PC. Windows will now scan and repair your drive before booting into the OS.
Step 4: Analyze the CBS.log to Identify the Corrupt File
If you are an advanced user, you can find out exactly which file is failing. Windows logs SFC details in a file called CBS.log.
- Open Command Prompt (Admin).
- Paste the following command to create a readable text file on your desktop: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfclogs.txt"
- Open the sfclogs.txt file on your desktop. Search for "Cannot repair member file" to identify the specific .dll or .sys file that is broken. You can then manually copy a healthy version of this file from another PC running the same Windows version.
Step 5: Perform a Windows Repair Upgrade
If all else fails, a Repair Upgrade is the ultimate solution. This reinstalls Windows while keeping all your apps, files, and settings exactly where they are. It replaces the entire operating system core with a fresh copy.
- Download the Windows 11 Installation Media from Microsoft's official website.
- Run the Setup.exe file.
- Select Keep personal files and apps when prompted.
- Follow the instructions to complete the installation. This will definitively fix any corruption that SFC and DISM could not handle.
💡 Pro Tip: Keep your software updated to avoid these issues in the future.
Category: #OS