Use DISM to Repair Windows System Image & Windows Component Store

Your Windows 10 PC slows you down and the SFC utility can’t solve the problem? Then use DISM to repair the Windows image so that SFC can do its job. Windows 10 includes a sophisticated command line utility known as Deployment Image Servicing and Management (DISM). It is available from Windows Vista SP1 and is now installed by default on Windows 10 and Windows 8.1.

The utility can be used to repair and prepare Windows images, including the Windows recovery environment, Windows configuration and Windows PE. DISM can also be used to repair the recovery image within an operating system installation and even maintain a virtual hard disk.

Normally, you should not need to execute the DISM command. However, if the SFC command does not run correctly or if a corrupted file cannot be replaced by the correct file, the DISM command or System Update Readiness Tool on Windows 7 can sometimes repair the underlying Windows system and let SFC work correctly.

How to execute DISM commands:

1. Open an elevated command prompt.

2. type the following command and press ENTER :

CheckHealth

Dism /Online /Cleanup-Image /CheckHealth

The /CheckHealth option checks whether the image has been marked as damaged by a failed process and whether the corruption can be fixed. Note that this command does not fix anything, but only reports problems, if any.

ScanHealth

You can also use the /ScanHealth command (below) to search for component memory corruption.

Dism /Online /Cleanup-Image /ScanHealth

RestoreHealth

The /RestoreHealth parameter performs a corruption check and tries to solve the problems it automatically finds.

Scanning takes longer if damage is detected during the scanning of the image. Note that the process may sometimes seem to be fixed, but this is not a cause for concern because the analysis should start automatically after a while.

If the analysis detects damage, it tries to solve the default problem with Windows Update.

To repair the component memory, use the following command:

Dism /Online /Cleanup-Image /RestoreHealth

Important When you execute this command, DISM uses Windows Update to provide the files needed to troubleshoot errors. However, if your Windows Update client is already down, use a running Windows installation as a repair source or a Windows folder side by side from a network share or removable disk, such as the Windows DVD, as the source for the files. To do this, execute the following command instead:

DISM.exe /Online /Cleanup Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess

Note Replace the C:\RepairSource\Windows container with the location of your repair source. For more information on using the DISM tool to repair Windows, see Repairing a Windows Image.

If you cannot open the command prompt from the Start menu, try Win + X. Otherwise, press Ctrl+Alt+Delete and open the Task Manager. Click on File, perform a new task and type powerhell for PowerShell and cmd for Command Prompt.

https://www.dell.com/support/article/us/en/04/sln283493/windows-server-how-to-repair-component-store-corruption-in-windows-8-and-windows-server-2012?lang=en