How to fix DISM error 87 on Windows 10

Here’s how you can Fix DISM error 87 on Windows 10

DISM (Deployment Image Servicing and Management) is a command-line tool used to service and manage Windows images for Windows PE, Windows Recovery Environment, and Windows setup. When trying to use DISM via Command prompt with administrative privileges, however, you may get the DISM Error: 87.

DISM Error: 87 is far more prevalent in Windows 10 than in Windows 7 or Windows 8, but there are ways you can fix it. However, before, we tackle Error 87, let’s take a look at what DISM is and what it can do.

How to fix DISM error 87 on Windows 10

DISM can be used to service Windows images (.wim) and virtual hard disks (.vhd or .vhdx). DISM comes built into Windows and can be accessed via the command line or Windows PowerShell. In Windows 10, you can find DISM.exe in the c:\windows\system32 folder, but you can also run it from the Command prompt as administrator.

DISM can be used to either mount or service a Windows image in the .wim, .ffu, .vhd or .vhdx file format. In addition, DISM can also be used to update a running operating system. However, DISM has some limitations as it can’t be used with Windows images that are newer than the installed version of DISM.

While DISM can be used with images with older Windows operating systems, it can’t be used with images newer than the currently installed version of DISM. Therefore, if you have Windows 10 version 1511, you can use DISM to service Windows 10 version 1511, 1507, and so on, but not newer versions such as 1607, 2004, and so on.

DISM can be used to service Windows images starting with Windows 7 and Windows Server 2008 R2, and their related versions Windows PE and Windows RE. However, the commands and options for servicing a Windows image depend on the OS and whether it’s an offline image or a running operating system.

DISM is most commonly used to manage data and information present on a Windows image. It can be used to taking inventory of components, updates, drivers, and applications within an image. Also, DISM can be used to capture or split an image, append or delete images within a .wim file or mounting an image.

As far as servicing is concerned, DISM can be used to add or remove driver packages, modify language settings, enabling or disabling Windows features, and upgrading to a higher edition of Windows.

So DISM is an important tool for those wanting to manage or service Windows image files or an installed and running Windows operating system. However, if you experience DISM error 87, you won’t be able to take advantage of the functions provided by DISM.

We have narrowed down the most common causes for DISM error 87. Now, the most common cause for this error is that the command line may not be entered correctly. In many cases, people forget to include spaces between the “/” character, resulting in the error. Hence, to avoid getting this error, all you need to do is enter the command correctly.

Prior to the release of the Fall Creators Update in October 2017, Windows 10 had a bug that causes error 87. Therefore, this error can be fixed by downloading and installing the latest updates for Windows 10.

Another common reason for error 87 is not running the DISM command in the elevated Command prompt. DISM requires the Command prompt to be opened with administrative privileges to execute it. In this case, the solution is to run DISM in the elevated Command prompt.

Lastly, you may get DISM error 87 by managing or servicing a Windows image that is newer than the version of DISM. As previously mentioned, DISM is incompatible with Windows images newer than its own version.

As you can see, there are is more than one reason why you may get DISM error 87. The good news is that you can fix this error with relative ease. We have included several step-by-step guides that can help you.

Table of Contents:

Method 1. Use elevated Command prompt

DISM error 87 can occur if you try to run DISM via a regular Command prompt. As with SFC commands, DISM commands have to be executed using an elevated Command prompt.

1. Hold down Windows+R keys to open the Run dialog box.

Type in CMD in the Run dialog box

2. Type in CMD and hold down Shift+Ctrl+Enter to open elevated Command prompt.

3. When UAC (User Account Control) prompts you, click Yes.

Make sure Command prompt is in elevated mode

Take a look at the top of the command prompt window. If it says Administrator, then this means that the command prompt is running in elevated mode.

4. Once the elevated Command prompt is opened type in the DISM command you want.

5. Then, type in the relevant command to you. For example, type in DISM.exe /Online /Cleanup-image /Scanhealth and hit Enter.

[Back to Table of Contents]

Method 2. Use the correct spacing when entering commands

The most common reason for getting error 87 is entering DISM commands incorrectly. Usually, users don’t include spaces between “/” which results in the command failing to be executed. For example, the correct way to enter a DISM command is by typing in DISM.exe /Online /Cleanup-image /Scanhealth with spaces before each slash, and then hitting Enter to execute it.

1. Hold down Windows+R keys to open the Run dialog box.

Type in CMD in the Run dialog box

2. Type in CMD and hold down Shift+Ctrl+Enter keys to open elevated Command prompt.

3. When UAC (User Account Control) prompts you, click Yes.

Enter the command using spaces after slashes

4. Type in the command you want to execute. For visualization purposes, let’s type in DISM.exe /Online /Cleanup-image /Scanhealth and hit Enter.

5. When entering a command, make sure to add a space before each slash.

[Back to Table of Contents]

Method 3. Download and install the latest Windows 10 updates

You may get DISM error 87 if you run an outdated version of Windows 10 with a bug that causes DISM commands not to work. The release of the Fall Creator’s Update in October 2017 fixed that bug. So, try updating your Windows 10 to resolve error 87.

Right-click Start menu and click Settings

1. Right-click the Start Menu button and click Settings.

Click Update & Security

2. Click Update & Security.

Click Install now

3. Click Install now if you have pending updates.

Click Check for updates

4. Or click Check for Updates to find and install updates.

4. Allow all of the pending updates to install and reboot your computer.

5. Once your computer has rebooted, you shouldn’t get DISM error 87.

[Back to Table of Contents]

Method 4. Reset Windows 10 using Recovery

If none of the methods work, this might mean that some DISM-related files have been corrupted. Unfortunately, you can’t reinstall DISM alone, so you try reinstalling Windows using Windows Recovery. Note that while you can choose to keep your personal files, the reinstallation process will remove all of your installed applications.

Right-click Start menu and click Settings

1. Right-click the Start Menu button and click Settings.

Click Update & Security

2. Click Update & Security.

Click Recovery

3. Click Recovery located on the left side of the window.

Click Get started

4. Click Get Started.

Click Keep my files

5. Select Keep my files.

Click Local reinstall

6. Select Local reinstall.

Click Next

7. Click Next.

Click Reset

8. Click Reset.

9. Wait for the resetting process to complete.

[Back to Table of Contents]

Video guide on how to fix DISM error 87 on Windows 10

[Back to Top]

Click to post a comment

About the author:

Tomas Meskauskas

I am passionate about computer security and technology. I have an experience of 10 years working in various companies related to computer technical issue solving and Internet security. I have been working as an editor for pcrisk.com since 2010. Follow me on Twitter to stay informed about the latest tech news or online security threats. Contact Tomas Meskauskas.

Our guides are free. However, if you want to support us you can send us a donation.