While running the DISM tool to fix my Windows installation, I got “Error 87” and the command wouldn’t complete. I’m not sure what I did wrong my syntax seems correct. Can anyone explain why this happens and how to fix it step by step?
Error 87 is most often caused by incorrect syntax because the DISM command syntax is only slightly incorrect or avoided to executing the tool in the appropriate environment. Make sure you:
Open Command Prompt as an Administrator
Useful to use correct syntax as shown below.
DISM /Online /Cleanup-Image /RestoreHealth
Command does not contain any extra spaces or typos.
If it still would fail, then try to first fix sfc /scannow and then again retry DISM.