Dism Error 87 Fixed -
DISM /Online /Cleanup-Image /RestoreHealth Result: Error: 87 – The option is unknown.
Let’s move from the most likely fix (typos) to the most complex (environment issues).
Ensure there is a before every slash in the command. 2. Run as Administrator dism error 87 fixed
Look at the right-hand panel of the search results and click . If a User Account Control (UAC) pop-up appears, click Yes . Retry your DISM command. 3. Revert Pending Windows Updates
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\install.wim Retry your DISM command
A: The script contains a syntax error. Open the script in Notepad and check for missing quotes or spaces inside the DISM line.
Some DISM options are not available in older Windows versions (e.g., Windows 7). For example, /RestoreHealth works on Windows 8 and later. On Windows 7, you need to use the System Update Readiness Tool instead. Master that one command
Set the to Automatic and click Start if it’s not running. Advanced Troubleshooting If the basic fixes fail, try these deeper repairs: How To Fix DISM Error 87 (Cleanup-Image Option is Unknown)
Always use DISM /Online /Cleanup-Image /RestoreHealth exactly as written—with the dash in /Cleanup-Image and no space in /RestoreHealth . Master that one command, and you will rarely see Error 87 again.