Run DISM to Repair Windows System Image and Windows Component Store
By Timothy Tibbetts |
In this guide, we're going to look at how to repair the Windows System Image on Windows 10 and 8. You can also apply this fix if SFC /SCANNOW is not available or if a Windows image becomes unserviceable. This guide is for advanced users who understand the Command Prompt and using DISM and switches.
Windows Component Store Corrupt
Open Command Prompt or PowerShell as admin. The first text you'll need to type in is Dism /Online /Cleanup-Image, followed by each of the following three options that can take 15 minutes or more each.
We should note that many people have had good luck only running the first option, /ScanHealth.
Scan the image for corruption: Dism /Online /Cleanup-Image /ScanHealth See C:\Windows\Logs\CBS\CBS.log for the log.
See if the image is repairable and healthy: Dism /Online /Cleanup-Image /CheckHealth
Repair System Image: Dism /Online /Cleanup-Image /RestoreHealth
If DISM reports back that the drive can be repaired, then you'll need to repair the image. Follow the commands below using your paths.
Repair an online image using your own sources: Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess
Repair an offline image using a mounted image as a repair source: Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows
In some cases, an image can be corrupted while modifying it with DISM. Use /Cleanup-MountPoints to repair it.
Notes:
If you can't open the Command Prompt using the Start Menu, try using Win Key + X. If not, press Ctrl+Alt+Del and open Task Manager. Click on File, Run new task and enter PowerShell for PowerShell and cmd for Command Prompt.
comments powered by Disqus
Windows Component Store Corrupt
Open Command Prompt or PowerShell as admin. The first text you'll need to type in is Dism /Online /Cleanup-Image, followed by each of the following three options that can take 15 minutes or more each.
We should note that many people have had good luck only running the first option, /ScanHealth.
If DISM reports back that the drive can be repaired, then you'll need to repair the image. Follow the commands below using your paths.
Repair an online image using your own sources: Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess
Repair an offline image using a mounted image as a repair source: Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows
In some cases, an image can be corrupted while modifying it with DISM. Use /Cleanup-MountPoints to repair it.
Notes:
If you can't open the Command Prompt using the Start Menu, try using Win Key + X. If not, press Ctrl+Alt+Del and open Task Manager. Click on File, Run new task and enter PowerShell for PowerShell and cmd for Command Prompt.
comments powered by Disqus