The most common cause of Error 87 is a simple typo. DISM commands are extremely sensitive to spaces.
DISM /Online /Cleanup-Image /StartComponentCleanup erro 87 dism
Sometimes the component store is corrupted, preventing DISM from parsing parameters correctly. Run the following command to clean the superseded components: The most common cause of Error 87 is a simple typo