How to Solve "SFC Unable to Fix Corrupt Files" Problem in Windows 10

SFC Unable to Fix Corrupt Files in Windows 10

If you get the following error while running the sfc /scannow command in Windows 10:

Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log...

Then this tutorial will show you step by step how to fix this problem.

But first:

System File Checker

System File Checker is a built-in Windows tool that you can use to scan and repair missing or corrupted system files in Windows.

If there are system files missing or corrupted, then Windows may not behave as expected and some Windows functions may not work, or Windows may crash.

You can let this tool run with the sfc /scannow command in Windows Command Prompt (Admin).

DISM

The Deployment Image Servicing and Management (DISM) tool in Windows 8, 8.1 and 10 can fix component store corruption that prevents the System File Checker from working properly.

We will use this tool to fix our System File Checker problem.

The "SFC Unable to Fix Corrupt Files" Problem

I had exactly the same problem.

I did a clean install of Windows 10.

And:

Like always I did a scan with the System File Checker after installing all of my software and before creating a system image backup.

When I ran the sfc /scannow command, I received the following error:

Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not supported in offline servicing scenarios.

Luckily I found the solution and on this page I will share it with you.

And now:

How to Fix "sfc found corrupt files but was unable to fix" in Windows 10

Note: "Run the following command" means: copy or enter the given lines into the Windows Command Prompt and then hit the Enter key on your keyboard.

Method 1: Windows 10 Safe Mode

The first thing you should try is to reboot Windows 10 in "Safe Mode" and then run the sfc /scannow command.

1. Hold the "Shift" key (keyboard) while clicking on "Restart" (Hold the "Shift" key, click on the start menu button, click on the power button and then click on "Restart").

2. Choose "Troubleshoot".

3. Choose "Advanced options".

4. Choose "Startup Settings".

5. Click on the "Restart" button.

6. Choose the option with "Enable Safe Mode" (number 4 keyboard key).

7. Sign into Windows.

8. Right-click on the start menu button and choose "Command Prompt (Admin)".

open command prompt admin windows 10

9. Type the following command and press Enter:

sfc /scannow
sfc /scannow command

Method 2: DISM

1. Right-click on the start menu button and choose "Command Prompt (Admin)".

open command prompt admin windows 10

2. Type the following command and press Enter:

DISM /Online /Cleanup-Image /RestoreHealth
fix sfc scannow error in windows 10 with dism tool

This may take 5 to 10 minutes and at 20% it will look like it's stuck (freezes), but that's okay. It's normal. Don't worry. It will work. Just be patient and wait until the command is 100% completed.

3. If the DISM command changed something, then restart your computer and follow the next two steps.

4. Right-click on the start menu button and choose "Command Prompt (Admin)".

5. Type the following command and press Enter:

sfc /scannow
sfc /scannow command

Method 3: DISM & Windows 10 ISO

1. Go to https://www.microsoft.com/en-us/software-download/windows10ISO/.

Alternative download: http://windowsiso.net/windows-10-iso/windows-10-th2-u2-download-build-10586-164/windows-10-th2-u2-single-language-iso-download-single-language-edition/.

Note: Before you could download the ISO file from https://www.microsoft.com/en-us/software-download/techbench), but this page doesn't exists anymore.

2. Download the correct version of Windows 10 (32-bit or 64-bit).

Note: The version you download must be the same version as your current Windows 10 version (32-bit or 64-bit).

To select a language (other than english) you will need to scroll down and click on the x86 (32-bit) or x64 (64-bit) button located next to your language in the "Download" column.

The download may take a while. The time it takes depends on your internet connection (speed) and also Microsoft's servers.

3. When the download is completed, you will need to unzip (extract) the ISO file with a file archiver, like 7-Zip, WinRar or WinZip.

4. Open the "sources" folder of your unzipped (extracted) ISO file.

5. Copy the "install.wim" file to your desktop.

6. Create a new folder on your desktop and name it mount.

create mount folder on Windows 10 desktop

7. Right-click on the start menu button and choose "Command Prompt (Admin)".

open command prompt admin windows 10

8. Type the following command and press Enter:

Dism /mount-wim /wimFile:%USERPROFILE%\Desktop\install.wim /index:1 /MountDir:%USERPROFILE%\Desktop\mount
Fix SFC Unable to Fix Corrupt Files in Windows 10

Wait until the command is completed.

9. Type the following command and press Enter:

Dism /Online /Cleanup-Image /CheckHealth

Wait until the command is completed.

10. Type the following command and press Enter:

Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%\Desktop\mount\windows /LimitAccess

This may take 5 to 10 minutes and at 20% it will look like it's stuck (freezes), but that's okay. It's normal. Don't worry. It will work. Just be patient and wait until the command is 100% completed.

11. Type the following command and press Enter:

Dism /unmount-wim /Mountdir:%USERPROFILE%\Desktop\mount /discard

Note: when you're trying to unmount your wim image and you get an error like 0xc1420127, then try the following command:

Dism /cleanup-wim

12. Now it's time to re-run the sfc /scannow command, so type the following command and press Enter:

sfc /scannow
sfc /scannow command

Wait until the command is completed.

Method 3 fixed my problem.

Maybe you're also interested in:

Reference(s):