Whenever you feel Windows not running smoothly, freezes, apps fail to open with different errors. Even Windows fails to start normally, Stuck on Black screen with a spinning circle or frequently crashes with different BSOD error we recommend to run System file checker utility that Scan and Restore missing, Corrupted system Files with a known good version, from a special cache folder located on %WinDir%\System32\dllcache.
But sometimes system file checker utility unable to restore missing system files, sfc /scannow results “Windows Resource Protection found corrupt files but was unable to fix some of them” that means the SFC utility was unable to get the necessary files from the Windows image, which might have become broken. And this situation, you can use DISM command line that repairs the Windows image (.wim), which then it will allow you to use the System File Checker to fix any issue with your Windows 10 installation.
What is DISM command line?
Microsoft Windows Deployment Image Servicing and Management (DISM) is a software tool that information technology (IT) administrators used through the command line or PowerShell to repair and prepare Windows images, including the Windows Recovery Environment, Windows Setup, and Windows PE.
Run DISM command on Windows 10
Whenever System file checker fails to restore missing system files its recommended to Run DISM command utility that repairs the broken system image allow SFC utility to do its job. Here how to run DISM command on Windows 10, 8.1 and 7.
Type Cmd on Start menu search, Right click on command prompt and select run as administrator. Where you can perform
- DISM offer /CheckHealth switch that reveals corruption without attempting to fix issues found.
DISM /Online /Cleanup-Image /CheckHealth
2. Where /ScanHealth scans for component store corruption but does not correct any issues
DISM /Online /Cleanup-Image /ScanHealth
3. And the /RestoreHealh switch scan for corruption and attempts to repair any issues that it finds automatically.
DISM /Online /Cleanup-Image /RestoreHealth
Note: The above command will try to use Windows Update to replace the damaged files. This process takes a long time to complete. If the problem has also extended to the Windows Update components, then you’ll need to specify a source containing the known good files to repair the image.
DISM RestoreHealth with Source options
If DISM command-line unable to replace th damaged files from windows update, you need manually specify the source files. To do this
Insert the Same version of Windows 10 Installation media, If you don’t have download windows 10 ISO Right click on it, select mount and make sure to note down the new drive letter. (For example D)
Now again Again Open the command prompt as administrator, type command below and hit enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:ISOmountpath\install.wim
Or you can also run the following to limit the use of Windows Update:
DISM /Online /Cleanup-Image /RestoreHealth /Source:ISOmountpath\install.wim /LimitAccess
Note: Replace ISOmountpath with your Drive letter which you mount the ISO file. For Ex my ISOmountpath Drive letter is D:
The command will perform a Windows image repair using the known good files included within the install.wim file using the Windows 10 installation media, without trying to use Windows Update as a source to download the required files for repair. Wait For RestoreHealth Command to complete 100% Then After Again Run The SFC Utility To Repair, Restore missing system files.