In the modern Windows era, many users have abandoned the classic Command Prompt (cmd.exe) for the more powerful PowerShell. While PowerShell can run most CMD commands, it has its own syntax rules.
DISM /online /cleanup-image /restoreheath /source:WIM:D:\sources\install.wim:1 dism error 87
If your syntax is perfect and you are still staring at Error 87, the issue might be deeper. DISM is architecture-sensitive. In the modern Windows era, many users have
Because DISM is a command-line tool, it is literal-minded. If you type /RestoreHealth without the leading space separating it from the previous command, DISM doesn’t see a command; it sees nonsense. It returns Error 87 because, as far as it knows, you invented a parameter that doesn't exist. In the modern Windows era