FIX: DISM error 2 in Windows 10 PC

Elsie Otachi By: Elsie Otachi
3 minute read
DISM error 2

For various PC problems, we recommend this tool.

This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues now in 3 easy steps:

  1. Download this PC Repair Tool rated "Excellent" on TrustPilot.com.
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues with Patented Technologies (requires upgrade).

The DISM or Deployment Image Servicing and Management tool, also known as the System Update Readiness tool, helps fix some Windows corruption errors that may cause updates and service packs not to install, like if a file is damaged.

This tool can be used to service a Windows image or prepare a WinRE (Windows Recovery Environment) and/or WinPE (Windows Preinstallation Environment) image, but, it can also be used to service .wim (Windows image) or .vhd/.vhdx (virtual hard disk).

Whenever you try to use the DISM command line and get the DISM error 2 displayed as a message, you may not know the first thing to do in such a case, but there are solutions you can try as outlined below, to fix the error.

How to fix DISM error 2

  1. Temporarily disable or uninstall your antivirus
  2. Check your DISM version
  3. Refresh the DISM tool
  4. Reset your PC with Keep my files option
  5. Use Disk Cleanup tool

Solution 1: Temporarily disable or uninstall your antivirus

Sometimes your security software can get in the way of some of the processes on your computer, so in the case of a DISM error 2 issue, you can temporarily disable the antivirus, or uninstall it, and if the issue persists, you can un-mount the image and check the result again.

Remember to reinstall or enable your antivirus once you’re done.

Solution 2: Check your DISM version

Ensure you’re using the correct version of DISM that is installed with the Windows ADK. Also, do not mount images to protected folders like the User\Documents folder. If DISM processes are interrupted, temporarily disconnect from the network, and consider running commands from WinPE instead.

Solution 3: Refresh the DISM tool

  • Right click Start and then select Command Prompt (Admin)

dism error 2

  • Type this command: exe/image:C /cleanup-image /revertpendingactions. This will revert pending tasks, and this includes any Windows updates that are pending.
  • Boot your computer and then run in recovery command prompt
  • Execute this command: exe /online/Cleanup-Image /StartComponentCleanup. This cleans up the component store and helps everything to run properly again

Restart and then run an SFC scan in Safe Mode by doing the following:

  • Click Start and then go to the search field box and type CMD
  • Go to Command Prompt on the search results
  • Right click and select Run as Administrator

dism error 2

  • Type sfc/scannow

dism error 2

  • Press Enter
  • Restart your computer and then run this command: dism.exe /online /Cleanup-Image /RestoreHealth

If this doesn’t help, try the next solution.

Solution 4: Reset your PC with Keep my files option

If you’ve tried the system restore and it doesn’t work, reset your PC with Keep my files option.  Performing a reset allows you to choose which files you want to keep, or remove, and then reinstalls Windows, so follow the steps below:

  • Click Start
  • Click Settings

dism error 2


For various PC problems, we recommend this tool.

This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues now in 3 easy steps:

  1. Download this PC Repair Tool rated "Excellent" on TrustPilot.com.
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues with Patented Technologies (requires upgrade).

  • Click Update & Security

dism error 2

  • Click Recovery on the left pane

dism error 2

  • Click Reset this PC

dism error 2

  • Click Get started

dism error 2

  • Select Keep my files option

Note: all your personal files will be deleted and settings reset. Any apps you installed will be removed, and only pre-installed apps that came with your PC will be reinstalled.

Solution 5: Use Disk Cleanup tool

Since DISM tool won’t work or brings up DISM error 2, and Disk Cleanup can’t release much space, use the Disk Defragmenter to rearrange fragmented data on the system by doing the following:

  • Log in as Administrator
  • Click Start and select File Explorer
  • Expand This PC
  • Right click on Local Disk (C:) and click Properties
  • Go to Tools tab

dism error 2

  • Under Optimize and defragment drive, select Optimize

dism error 2

  • Click Apply and then press enter or click OK

Have you managed to fix DISM error 2 on your computer using any of these solutions? Let us know by leaving a comment in the section below.

RELATED STORIES TO CHECK OUT:

For various PC problems, we recommend this tool.

This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues now in 3 easy steps:

  1. Download this PC Repair Tool rated "Excellent" on TrustPilot.com.
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues with Patented Technologies (requires upgrade).

Discussions

Next up

Mozilla adds alerts about recently breached sites into Firefox browser

Giles Ensor avatar. By: Giles Ensor
3 minute read

Firefox has announced that it will start to warn users if they visit any breached sites. This is in an attempt to not only make […]

Continue Reading

More uncertainty for Microsoft’s Windows 10 October Update

Giles Ensor avatar. By: Giles Ensor
3 minute read

Oh dear. It’s been a pretty bad month for Microsoft concerning its Windows 10 October 1809 Update release. Microsoft eventually released the update a couple […]

Continue Reading

Confirmed: Microsoft now accepting ARM64 apps on its Store

Giles Ensor avatar. By: Giles Ensor
2 minute read

Yesterday, Microsoft released Visual Studio 15.9. With it came the announcement that “developers now have the officially supported SDK and tools for creating 64-bit ARM […]

Continue Reading