If specifying a repair source (e.g., from a Windows ISO mounted as D: ):
The System File Checker (SFC) and DISM work hand-in-hand. If DISM is glitching due to corrupted core files, running SFC can patch the underlying issue, allowing DISM to function normally afterward. Open . Type sfc /scannow and press Enter . Wait for the verification to reach 100%. If it fixes errors, restart your PC. dism error 87 fixed
sfc /scannow