Users encountered DISM error 87 in Windows 10 while running DISM command at command prompt with administrator rights. Some of the common reasons that cause this error are, when the command line was not typed correctly, if the Windows 10 system has an error, the system is using the wrong version of DISM or it is simply not executing the command. with administrator rights.
Fortunately, there are a few methods that can help you solve this problem. Let's see how you can fix DISM eror 87 on your Windows 10 device.
Method 1: Write the DISM command with the correct spacing
When typing a command at the command prompt (administrator mode), it is important to take space into account. An ignored space and bang is a mistake. The spacing error usually occurs before the "/“(Forward slash). Therefore, make sure there is a space before "/".
For example, this is an example of the command line typed with incorrect spacing:
DISM.exe / Online / Cleanup Image / Scanhealth
But the correct command is:
DISM.exe / Online / Cleanup-image / Scanhealth
Now that you have written the correct file DISM command with the correct spacing, press Log in and the command should be processed correctly.
If you still get the error then follow the second method.
Method 2: Run Command Prompt with Administrator Rights
The other most common reason you see DISM error 87 is when you have opened the normal command prompt instead of running it as administrator. Like the SFC / scannow command, DISM commands must also be run from the command prompt with administrator rights.
Although there are several ways to open Command Prompt in elevated mode, here we will show you one of the ways to do it:
Step 1: To go Home and write Symbol of the system in the search box.
Step 2: Right-click on the result and select Run as administrator in the context menu.
That's all. This will open the command prompt window in elevated mode (with admin rights) and you can now run the DISM command without error.