More or less advanced users often use the command line, because it can influence most system processes. You may receive error messages from time to time when using the DISM line, which is available in the seventh and later versions of Windows.
This is the norm for any program, but our task is to get rid of the problem to execute the required command. Error 87 DISM occurs for several reasons, and in each case there are ways to eliminate it.
Sometimes users may encounter error 87 in the DISM line
Let’s find out under what circumstances such a message usually appears and how to get rid of it without assistance.
What is error 87 related to?
Typically, it is directly related to any actions performed with the WinSxS Directory. If suddenly any system file disappears in Windows, it will be immediately restored by a working copy from this folder. That is, WinSxS is a very important folder with documents.
And here the error 87 arises at the moment when the user tries to carry out some operations with a folder through DISM. Now let’s take a closer look at the situations when this problem arises, so that, depending on them, we can learn how to get rid of it.
Error 87 when checking the integrity of system files
From time to time Windows 7, 8, 8.1 and even the latest version starts to function properly. Sometimes the computer suddenly restarts or just hangs often. In this situation, users are usually advised not only to check the PC for viruses, but also to find out if there is any damage to system files.
To do this, use the command line where sfc / scannow is entered. If all is well, the user receives the appropriate text. However, in some cases, you will receive a message stating that the system has found corrupted files but can do nothing about them.
At this point, DISM comes into play – you should open it on behalf of the administrator and enter the following commands:
- exe / Online / Cleanup-image / ScanHealth – if you have the seventh version of Windows
- The same command + DISM.exe / Online / Cleanup-image / RestoreHealth – two commands for Windows 8, 10. The first is needed to identify damage, the second command starts fixing them.
It is after the first combination from the list, which is designed for the seventh version of the system, that error 87 appears on the DISM command line with the accompanying text “ScanHealth parameter not recognized in this context”.
How to fix it? The first very simple solution is to check the correctness of the combination. Because this command line is very demanding on each character, make sure you put only one space before each slash.
Didn’t help? Then you need to download the update called KB2966583 from the Microsoft website and install it on your computer.
After a successful installation, you will be able to run the DISM command prompt again and restore the integrity of Windows files.
Error 87 and attempts to clean the WinSxS directory
Sometimes the above directory, which works as insurance for all the most important files, is tried to reduce. For what? In most cases, the WinSxS folder takes up a lot of disk space – 5, 7 and even 8 or more GB, which users may not like, especially if there is not enough free memory.
Therefore, to save some space, you can delete a folder backup as follows:
- DISM opens.
- Enter the text dism / online / cleanup-image / spsuperseded / hidesp.
It is often after this command that it knocks out error 87 with the following text: “The spsuperseded parameter is not recognized in this context.”
What to do in this case? Check that the Windows Module Installer service is working. If it does not work, install it, run it, and then repeat the above steps.
If this does not help, then the command to remove the backup has already been executed, and you will not be able to save more space.
Now you know what causes error 87 on the Windows command line, and you know what to do to make it go away. We recommend that you be careful when using such programs and carefully monitor what processes you interfere with so as not to harm your computer.

