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.
If system files are missing or corrupted, then Windows may not behave as expected and some Windows functions may not work, or Windows may crash.
You can run this tool with the sfc /scannow command in Windows Command Prompt (Admin).
DISM
The Deployment Image Servicing and Management (DISM) tool in Windows 8 and 10, can fix component store corruption that prevents the System File Checker from working correctly.
We will use this tool to fix our System File Checker problem.
The “SFC unable to fix corrupt files” problem
I just reinstalled Windows 10, and after installing all of my software, I scanned Windows with the System File Checker tool.
But:
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.
Fortunately, I found a 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
Method 1: Windows 10 Safe Mode
The first thing you should try is to (re)boot Windows 10 in “Safe Mode” and then run the sfc /scannow command.
1. Press and hold the [Shift] key on your keyboard.
2. Click on the start menu button.
3. Click on the power button.
4. Click on Restart.
Note: If the
start menu button is not working, then you must open Settings, click on
Update & Security, click on
Recovery and then click on the
Restart now button.
5. Choose Troubleshoot.
6. Choose Advanced options.
7. Choose Startup Settings.
Note: If you don't see Startup Settings, then you will have to click on See more recovery options located at the bottom of the screen.
8. Click on the Restart button.
9. Choose the Enable Safe Mode option (number 4 keyboard key).
10. Log into Windows.
11. Right-click on the start menu button and choose Command Prompt (Admin).
12. Type the following command:
sfc /scannow
13. Press Enter.
Method 2: DISM
1. Open Windows Command Prompt as administrator.
Three Ways to open Windows Command Prompt as administrator:
- Press the Windows + X keyboard keys at the same time and then click on Command Prompt (Admin).
- Right-click on the start menu button and then click on Command Prompt (Admin).
- Enter cmd in the Windows search bar or Cortana, then right-click on Command Prompt and choose Run as administrator.
2. When the User Account Control (UAC) window appears, you click Yes.
Note: Depending on your settings, you might need to enter your administrator password first and then click Yes.
The Command Prompt window will appear.
3. Type the following command and press Enter:
DISM.exe /Online /Cleanup-image /Restorehealth
4. Wait until the command is finished and then you can close the Command Prompt window.
5. Restart your computer.
6. Log into Windows.
7. Right-click on the start menu button and choose Command Prompt (Admin).
8. Type the following command:
sfc /scannow
9. Press Enter.
Method 3: DISM and Windows 10 ISO
2. Click on the Download tool now button.
3. Open the media creation tool.
4. Click on the Accept button.
5. Select Create installation media (USB flash drive, DVD, or ISO file) for another PC.
6. Click on Next.
7. Make sure that the correct language, edition, and architecture is selected.
8. Click on Next.
9. Select ISO file.
10. Click on Next.
11. Select a location on your PC where you want to save the Windows.iso file.
12. Click on the Save button.
The media creation tool will now download the Windows 10 iso file.
The download may take a while. The time it takes depends on your Internet connection (speed) and Microsoft's servers.
13. When the download is ready, you will need to unzip (extract) the ISO file with a file archiver program like 7-Zip, WinRar, or WinZip.
14. Open the sources folder of your unzipped (extracted) ISO file.
15. In the sources folder, you will find a install.wim file. Copy this file to your desktop.
16. Create a new folder on your desktop and name it mount.
17. Open Windows Command Prompt as administrator.
Three Ways to open Windows Command Prompt as administrator:
- Press the Windows + X keyboard keys at the same time and then click on Command Prompt (Admin).
- Right-click on the start menu button and then click on Command Prompt (Admin).
- Enter cmd in the Windows search bar or Cortana, then right-click on Command Prompt and choose Run as administrator.
18. When the User Account Control (UAC) window appears, you click Yes.
Note: Depending on your settings, you might need to enter your administrator password first and then click Yes.
The Command Prompt window will appear.
Note: You must wait until a command is completed before you run the next command.
19. Type the following command and press Enter:
Dism /mount-wim /wimFile:%USERPROFILE%\Desktop\install.wim /index:1 /MountDir:%USERPROFILE%\Desktop\mount
20. Type the following command and press Enter:
Dism /Online /Cleanup-Image /CheckHealth
21. 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.
22. 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
23. Now it's time to re-run the sfc /scannow command, so type the following command and press Enter:
sfc /scannow
References:
POWER BY MKOONLINE.COM