Reparatie Besturingssysteem

Checking issues with DISM using CheckHealth option

You can use the CheckHealth option with DISM to quickly determine if there are any corruptions inside the local image, but the option won’t perform any repairs.

To check for issues within the image with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to perform a quick health check and press EnterDISM /Online /Cleanup-Image /CheckHealth

    Dism Checkhealth Option On Windows 10Source: Windows Central

Once you complete the steps, the command will run and verify if there is any data corruption that needs fixing.

Checking issues with DISM using ScanHealth option

You can run DISM with the ScanHealth option instead of “CheckHealth” to perform a more advanced scan to determine if the Windows 10 image has any problems.

To perform an advanced scan with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to perform an advanced DISM scan and press EnterDISM /Online /Cleanup-Image /ScanHealth

    Dism Scanhealth Option On Windows 10Source: Windows Central

After you complete the steps, the advanced scan will take several minutes to determine if the local image needs repairing.

Repairing issues with DISM using RestoreHealth option

If there are issues, then you can use DISM with the RestoreHealth option, which will run an advanced scan and repair any problems automatically.

To repair Windows 10 image problems with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the Windows 10 image and press EnterDISM /Online /Cleanup-Image /RestoreHealth

    Dism Restorehealth Option On Windows 10Source: Windows Central

    Quick note: While the command is running, it’s expected to see the process stuck at 20 or 40 percent. After a few minutes, the process will complete successfully.

Once you complete the steps, the Deployment Image Servicing and Management tool will connect to the Windows Update servers to download and replace any damaged files in the local image for Windows 10 as necessary.

Repairing issues with DISM using WIM image

The DISM tool is unlikely to run into issues, but in the rare case that Windows Update is causing problems getting the replacement files or you don’t have an internet connection, you’ll need to use an alternative source to repair the files using another image with the Source option.

Before you can specify a different source, you’ll need an install.wim or install.esd file from another computer, bootable installation media, or ISO file. Also, it’s important that the source of the known good files matches the same version, edition, and language of Windows 10 that you’re using on your computer.

Download Windows 10 ISO file

The recommended method for accessing a good image is using the Media Creation Tool to download an ISO image of Windows 10.

To download the ISO file of Windows 10, use these steps:

  1. Open this Microsoft support website.
  2. Click the Download tool now button.
  3. Double-click the MediaCreationToolxxxx.exe file to launch the app.
  4. Click the Accept button to agree to the terms.
  5. Select the Create installation media (USB flash drive, DVD, or ISO file) for another PC option.

    Media Creation Tool Create Image OptionSource: Windows Central

  6. Click the Next button.
  7. Click the Next button again.

    Media Creation Tool Windows 10 Settings DownloadSource: Windows Central

  8. Select the ISO file option.

    Media Creation Tool Iso OptionSource: Windows Central

  9. Click the Next button.
  10. Select the destination for the ISO file.
  11. Click the Save button.

    Save Windows 10 Iso DownloadSource: Windows Central

  12. Click the link to open the file location with File Explorer.

    Reparatie Besturingssyteem 1Source: Windows Central

  13. Click the Finish button.
  14. Double-click the Windows.iso file to mount the image.
  15. Under the This PC section, in the left pane, confirm the drive letter for the mounted image.

    File Explorer Iso Mounted Drive LetterSource: Windows Central

After you complete the steps, you can use DISM with the “Source” option to repair the local image of Windows 10.

Fix Windows 10 recovery image

To run DISM specifying a different source (install.wim) image, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the Windows 10 image and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim

    Dism Restorehealth With Source Option On Windows 10Source: Windows Central

    In the command, make sure to replace “D” for the letter that corresponds to your ISO mount point.

  4. (Optional) Type the following command to limit the use of Windows Update and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:D\Sources\install.wim /LimitAccess
  5. (Optional) Type the following variant of the previous command to accomplish the same task and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\Sources\install.wim:1 /LimitAccessIn the command, make sure to change “D:\Sources,” for the path that corresponds to the location of the install.wim file.

Once you complete the steps, the command will scan and repair any issues using the install.wim image that you specified.

Repairing issues with DISM using ESD image

Alternatively, if you have an encrypted install.esd image from a recent upgrade, you can use it to repair the damaged files.

To run DISM specifying a different source (install.esd) image, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the image with an external source and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\install.esd

    Dism Restorehealth Option Using Install.esdSource: Windows Central

    In the command, make sure to change “C:\$Windows.~BT\Sources,” for the path that corresponds to the location of the install.esd file (if applicable).

  4. (Optional) Type the following command to limit the use of Windows Update and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\install.esd /LimitAccess
  5. (Optional) Type the following variant of the previous command to accomplish the same task and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT\Sources\install.esd:1 /LimitAccess
  6. (Optional) Type the following command to use an install.esd file located in another drive and press Enter:DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.esdIn the command, make sure to change “D:\Sources,” for the path that corresponds to the location of the install.esd file.

After you complete the steps, the Deployment Image Servicing and Management command tool will run and repair the damaged files using the files included in the install.esd image. Once the process completes, the log files will be saved on %windir%/Logs/CBS/CBS.log and %windir%\Logs\DISM\dism.log capturing any issues found and those that were fixed.

How to run SFC to repair problems on Windows 10

The instructions outlined above to use DISM will repair any issues with the local hidden image, but they won’t fix any problems with the actual installation of Windows 10. However, now that you have a healthy image, you can use it with the System File Checker to repair common issues preventing your device from running correctly.

To use the SFC command tool to repair the Windows 10 installation, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command and press Enter:SFC /scannow

    Windows 10 Sfc Scannow CommandSource: Windows Central

    Quick tip: If errors are found, you may want to run the command about three times to make sure that everything is fixed correctly.

Once you complete the steps, the System File Checker will scan your device and repair any system files using the good files from the local image to restore the health of Windows 10.

Although the above command should be enough to fix an installation, there are a lot of SFC commands that you can use to repair Windows 10.

We’re focusing this guide on Windows 10, but you can also use DISM to service images on Windows 8.1 and Windows 7, but the options available will vary depending on the version that you’re using.