For DISM Error 87 in a working Windows 11 desktop, open Command Prompt as administrator and check the command's spaces, slashes and option names. For image repair, use DISM /Online /Cleanup-Image /RestoreHealth. If the same command is rejected in Windows Recovery or from a bootable USB, check the target and DISM environment before trying it again: /Online means the operating system currently running.

I'd start with the exact text after “Error: 87.” “The parameter is incorrect” and “The cleanup-image option is unknown” point to a rejected operation, not a completed repair or a diagnosis of drive failure.

Check the command in an administrator window

Microsoft defines error 87 as ERROR_INVALID_PARAMETER: “The parameter is incorrect.” Keep the full command and response together; the number alone doesn't establish which argument caused it.

If you can sign in normally, save your work and search for Command Prompt. Right-click it, select Run as administrator and approve the prompt using an authorized administrator account. On a managed PC, ask IT if you don't have that permission.

Type this documented repair command with a space before each slash:

DISM.exe /Online /Cleanup-Image /RestoreHealth

Use Cleanup-Image, including its hyphen. Don't combine all arguments into one string such as /Online/Cleanup-Image/RestoreHealth, change it to /Checkup-Image, or add words from a guide's explanation to the command.

Capitalization isn't the repair: Microsoft's DISM syntax reference says these options aren't case sensitive. Spelling, separators and whether the option is available in the chosen context are what need checking.

Don't run several repair commands at the same time. If DISM accepts the command and starts processing, let it reach a final result. A changed progress percentage or a different final error is new information; keep it rather than treating every unsuccessful repair as Error 87.

Check whether you're repairing the running Windows

/Online doesn't mean “use the internet.” It selects the operating system currently running. Microsoft's syntax distinguishes it from /Image:, which selects an offline Windows image. The two options cannot be used together.

SessionWhat to check
Normal Windows 11 desktopThe online command targets that running installation. Use an administrator window.
Recovery or bootable USB Command PromptThe running environment is recovery or WinPE. Identify the offline installation before selecting its image path.
A technician's mounted Windows imageVerify the actual image root, tool version and supported servicing options.

If you opened Command Prompt from Troubleshoot > Advanced options, you're in a recovery workflow. That isn't the same as opening an administrator Command Prompt after signing in to Windows.

Command Prompt tile in Windows Recovery Environment Advanced options.
This Command Prompt opens in the recovery environment. Identify the Windows installation before choosing an offline repair target. Select the image for the full Advanced options screen.

Don't replace /Online with /Image:C:\ just because a forum answer recommends it. An offline image path identifies the root of the Windows installation being serviced, and drive letters may differ in recovery. Confirm the installation and any encryption requirements first. If Windows won't start and you can't identify the target confidently, use the Startup Repair failure guide and have support establish the right recovery route.

Use help for the selected servicing context

Inside the working Windows installation, this read-only help command shows the servicing options available for the online image:

DISM /Online /?

The distinction matters: DISM /? without a selected image provides general image-management help. An option missing from that first help page doesn't, by itself, establish that Windows needs updating or reinstalling.

For an offline image, Microsoft's syntax reference shows help using /Image: and the verified image directory. I wouldn't give a universal drive letter for recovery: choosing the correct installation comes before choosing its repair command.

If the correct command remains unrecognized, retain the displayed DISM version and image version. Microsoft's supported-platform guidance requires the tool, host environment and target image to be compatible. Old deployment or recovery media can involve different tools and available operations. Ask your technician to check that combination rather than downloading a replacement DISM executable from a file-sharing site.

The reported outcomes aren't one universal fix. In a Microsoft community discussion about unknown options, respondents still received Error 87 after retrying the commands; one reported changed drive letters during recovery. In a separate offline-image case, the question's author got the same commands working after copying and mounting the image again, without establishing the original cause. Those cases support checking the actual environment and image, not promising that retyping alone repairs every instance.

If DISM now accepts the command but ends with Error 1726, follow the DISM 1726 RPC-failure checks. Keep the new error and the latest log; changing valid syntax again will not identify a servicing failure.

Choose the next step from the new result

If DISM completes successfully, Microsoft's system-file repair sequence puts SFC next:

sfc /scannow

Let SFC finish, read its final message and check the original Windows problem again. A command that now runs is progress; the original update or application still needs its own outcome check.

If DISM instead reports that source files couldn't be found, follow the 0x800f081f repair-source guide. That's a different investigation from an unknown command option. If SFC says it could not perform the requested operation, don't treat that as a completed scan either.

If Error 87 persists after checking syntax, target and tool compatibility, keep the relevant attempt from %windir%\Logs\DISM\dism.log. Microsoft's syntax reference notes that the default log location in Windows PE uses its RAM-disk environment, so don't assume a recovery log path belongs to the installed Windows. Share relevant extracts privately with support, together with the full command and environment.

Skip broad registry edits, copying DLLs from another PC and automatic disk-repair recipes based only on this error. They don't identify the rejected parameter. More scoped repair paths are in the Windows system repair hub; stop repeating a rejected command until you've changed a relevant input or established a new finding.