How to Repair Windows 10 Issues (Windows Update, Component Store Corruption, etc.)

Newer versions of Windows have new methods to repair Windows issues/corruption/etc. and these steps could possibly save you from a re-install. Starting in Windows 8, Windows 8.1, Windows 10, Windows 2012 R2 and above include the ability to scan the system for corruption via two different methods. Before running any of the below commands you must open either a command prompt or powershell window with Administrative Privileges. On Windows 10 you hit the Windows key and R, to launch the run window. In here you can type cmd (it will then resolve to command prompt, simply right click on it and select run as Administrator”). After doing this you can execute any of the following below.

  1. “sfc /scannow”

    (scans the system integrity of shared libraries installed and that should be in place, and attempts to make repairs if possible).

  2. “dism /online /cleanup-image /restorehealth”

    DISM is another tool that can be used to add/remove windows features from the command prompt, etc. Once of DISM’s more powerful features is it’s ability to repair a Windows installation and various corrupt files using source media. For example on a Windows 10 install if you are experiencing issues with running “dism /online /cleanup-image /restorehealth” you can copy the install.wim from the Windows 10 ISO you installed with to your hard drive, then run DISM using only that image as source to repair your system.

  3. “DISM /Online /Cleanup-Image /RestoreHealth /source:wim:C:\install.wim:1 /limitaccess”

    Example #3 above works the same as the command in #2, however, instead of using Windows Update as it’s source, it leverages the original install.wim (you copied over from your Windows install media, from the \sources folder) or image that the system was installed with. The “install.wim” is located on the original Windows ISO under the \sources\ folder. On a side note, the “/limitaccess” flag prevents DISM from contacting windows update, and forces it to only use the local install image.

  4. sfc /scannow

    Never hurts to run sfc /scannow again, and reboot after repairing various errors/issues.

  5. chkdsk C: /f

    (run as administrator is also a good tool and thing to do periodically, if you suspect file corruption).

  6. Supplemental Things to Try

    (run as administrator is also a good tool and thing to do periodically, if you suspect file corruption).

  7. 1. Mount the .ISO file by double clicking on it.

    2. Open ‘Windows Powershell’ or ‘Command Prompt’ with Admin privileges (right click -> Run as Administrator)

    3. Let’s check the System Health first, by running these commands:

    3.1 dism /online /cleanup-image /scanhealth

    3.2 dism /online /cleanup-image /checkhealth

    3.3 dism /online /cleanup-image /restorehealth

    4. I’m sure that 3.3 will give you an error stating that it could not perform the task. And now it’s when the mounted ISO comes into play. Let’s specify the file from the ISO so that we can fix it. Run the following command: (Notice that X must be the drive letter on which your system has mounted the ISO)

    4.1 DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess

    5. Now let’s repair any damage in the system files, shall we?

    5.1 sfc /scannow

47 Responses to “How to Repair Windows 10 Issues (Windows Update, Component Store Corruption, etc.)”