How to Fix DISM Error 87 in Windows Server 2016 and Windows 10

-

|

Introduction

DISM Error 87 in Windows Server 2016 can be cause by any of the following:

  1. Running DISM command with a space between DISM and one of the switches or space in any of the switches.
  2. Using /Online parameter with just /Cleanup-Image without /RestoreHealth
  3. Running DISM /Image:c:\ from within Windows

How to Fix DISM Error 87 in Windows Server 2016

Now that you know what could cause DISM error 87, here are the steps to fix it.

1
Remove Any Space from the Command and Include Forward Slash (“/”) before a Switch

Advertisement

The first thing to check is that there are no spaces with your command. Also ensure that you use “/” before any DISM switch. Finally, do not leave a space between “/” and a DISM switch.

To run any of the command discussed in this guide, open command prompt as administrator.

Search command prompt, right-click it then select Run as administrator.

Lets see how each of the situations described throws DISM error 87 in Windows Server 2016.

Type the command below in command prompt then press enter.

DISM /Online/Cleanup-Image /RestoreHealth

Here is the result. Error: 87 “The online/cleanup-image option is unknown.”

dism error 87 server 2016

Now, I will run the command with a space.

DISM /Online /Cleanup-Image /RestoreHealth

Command is running successfully!

Another command mistake that causes error 87 is to exclude the “/” before a DISM switch.

To see how this could cause the error message, type this command and press enter:

DISM /Online Cleanup-Image /RestoreHealth

Here is DISM error 87 in Windows Server 2016 again!

Solution? Add a “/” before Cleanup-Image. Here is the amended command:

DISM /Online /Cleanup-Image /RestoreHealth

2
When you Use /Online, Include /Cleanup-Image and /RestoreHealth

Another command mistake that leads to DISM error 87 is to run the command shown below:

DISM /Online /Cleanup-Image

Here is the DISM error message:

Error 87: “An error occurred while processing the command. Ensure that the command-line arguments are valid”

dism error 87 server 2016

The fix? Use the complete command parameters as show below:

DISM /Online /Cleanup-Image /RestoreHealth

3
To Run DISM Within Windows Use /Online Instead of /Image Switch

Advertisement

Another cause of DISM error 87 is to use /Image switch from within Windows.

Here is a sample command:

 DISM /Image:c:\ /Cleanup-Image /RestoreHealth

The command returned error: 87:

“The /Image option that is specified points to a running Windows installation. To service the running operating system, use the /Online option.”

The fix? Modify the command as shown below:

 DISM /Online /Cleanup-Image /RestoreHealth
To see how you can run DISM /Image:c:\ /Cleanup-Image /RestoreHealth command read How to Fix DISM Error 50 in Windows 10 and Windows Server 2016.

4
If None of the Above Worked, Run SFC /Scannow Before DISM

If none of the above is the reason for DISM error 87 in Windows Server 2016, try the following:

  • Type this command and press enter
SFC /Scannow

Wait for the command to complete. If it returns errors, restart your server then run your DISM command.

Conclusion

One of the fixes discussed in this guide should resolve DISM error 87.

Have a question or comment? Use the “Leave a Reply” form at the end of this page.

Want more Widows Server fixes? Visit our Windows Server Fix page.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

FEATURED POSTS

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...

How to Map Network Drive in Windows 10 (5 Methods)

Introduction This guide demos 5 methods to Map Network Drive in Windows 10. Options to...
How to Install Windows 10 1909 Preview Build

How to Install Windows 10 19H2 Preview Build

Introduction If you are a member of Windows 10 Insider Program you can install Windows 10 19H2 Preview Build....

How to Sign in to Windows 10 with a Microsoft Account

Introduction When you installed Windows 10 you may have created and signed in with a local account. You can...
Disable IPv6 in Windows 10

How to Disable IPv6 in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to disable IPv6 in Windows 10: Disable IPv6 from...

Advertisement

TRENDING POSTS

Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...

Find My Samsung: Register and Use Samsung Find my Mobile

Introduction Ever wondered how you could find your Samsung phone if you lost it? Find my Samsung or Samsung...
What is the Difference Between PowerShell and CMD?

Windows Powershell vs CMD: Differences and Similarities

Introduction This short guide compares Windows PowerShell vs CMD (Windows command prompt). I will cover the history and nature...
Spotify No Longer Supports this Version of Microsoft Edge

Spotify No Longer Supports this Version of Microsoft Edge [Fixed]

Introduction When you open Spotify web player on Microsoft Edge, you may receive the error message "Spotify No Longer...
Windows 10 Won't Boot

Windows 10 Won’t Boot With Black Screen? 3 Ways to Fix It

Why Won't Windows 10 Boot Up? If your Windows 10 stops with a black screen, the first question in...

Advertisement

BEST OF ITECHGUIDES

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...
Active Directory Domain Services

Active Directory Domain Services: Installation & Configuration

What is Active Directory Domain Services? Active Directory Domain Services (AD DS) is at the core of Microsoft's Directory...
Windows 7 Support End Date

Windows 7 Support Ends January 14, 2020: Your Upgrade Options

Introduction According to Microsoft, Windows 7 support end date is January 14, 2020. Microsoft recommends that you upgrade to...
how to install windows 10 1903 update manually

How to Install Windows 10 1903 Update Manually

Windows 10 1903 Update was released in May, 2019. But some users are not yet offered the update via automatic update. The...

How to Add in Excel (Excel Sum) with Examples

Introduction There are different ways to add numbers in Excel. You could simply select the cells containing the data....

RECENT POSTS

How to Enable Hyper-V in Windows 10 (3 Methods)

How to Enable Hyper-V in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to enable Hyper-V in Windows 10. To install Hyper-V...
RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

Introduction Starting from October 2018 (1809) update, RSAT Tools became part of Windows 10. From this version of Windows...

How to Enable RSAT for Active Directory in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to enable Active Directory in Windows 10. It is not exactly enabling "Active...
How to Install Windows 10 1909 Preview Build

How to Install Windows 10 1909 (19H2) Preview Build

Introduction Windows 10 1909 Preview is available for Windows Insiders. Made available early September, 2019 you have to be...
How to Install RSAT in Windows 10 (3 Methods)

How to Install RSAT in Windows 10 (3 Methods)

Introduction This guide demos how to Install RSAT in Windows 10. Starting with Windows 10...

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...
Configure Map Network Drive with Group Policy

Map Network Drive in Windows 10 with Group Policy

Introduction This guide demos how to map network drive with group policy. This guide is...

How to Map Network Drive in Windows 10 (5 Methods)

Introduction This guide demos 5 methods to Map Network Drive in Windows 10. Options to...
How to Download Windows 10 ISO with Media Creation Tool

How to Download Windows 10 ISO with Media Creation Tool

Introduction This guide demos the steps to download Windows 10 ISO. You can download Windows 10 ISO with Media...

How to Install Windows 10 from Network Boot (Via WDS Server)

Introduction This guide demos how to install Windows 10 from network boot. The steps discussed in...

Advertisement

MUST READ

Chrome ADMX

How to Download and Install Google Chrome Administrative Template

Introduction To configure Google Chrome settings via Group Policy you require Chrome ADMX. However, as you would expect by...

How to Install Windows 10 from USB (With Images)

Introduction This is a step by step how to Install Windows 10 from USB guide. Steps...
How to Cancel Spotify Premium

How to Cancel Spotify Premium

Introduction You can cancel Spotify Premium within the 30-day trial. If you cancel Spotify Premium within the trial period,...
windows server 2016 recovery mode

How to Repair Windows Server 2016 Boot (“BootMgr is Missing”)

Introduction If you are reading this, your Windows Server 2016 is probably broken and you may need to repair...
windows server 2016 won't boot after update

Windows Server 2016 Won’t Boot After Update? Here are 3 Fixes

Introduction This guide recommends 2 fixes if Windows Server 2016 won't boot after update: Rollback...

By using this website you agree to accept our Privacy Policy and Terms & Conditions