
If you are conversant with WDS and MDT and Windows Image manipulation, you must have come across this error multiple times. There are a lot of DISM error 87 and there isn’t any single solution for all. It makes sense to analyse the specific error promoted and then, have it resolved.
Here are some related errors you will come across when modifying Windows Image. How to fix error 0xc1510114: The wim file needs to be remounted, error 0x80070002: When trying to mount an image file, error code 15601: How to resolve DISM unspecified error when removing preinstalled packages, error 0xc1420127: The specified image in the specified wim is already mounted for read and write access, and
– Error 740: Elevated permissions are required to run DISM.
As you can see below from the output below, the error was prompted because i misspelt the switch “remove-appxprovisionedpackage. See this article on how to remove built-in application from Windows Image.

After entering the correct command as shown below, I was able to remove the pre-installed application.
dism /image:G:\Path-to-the-mount-file\MountZ /Remove-Provisionedappxpackage /PackageName:Microsoft.WindowsCalculator_2015.1009.20.0_neutral_~_8wekyb3d8bbwe
You can also get the error 87, when you do not execute DISM with Administrator privilege. Please just take a look out the output for reasons why the error was prompted. "Make sure that the cmd window title is: Administrator: Command Prompt".
I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.