If you’re encountering DISM error 87 on Windows 10 or Windows 11, it can prevent you from repairing your system images or fixing Windows issues. This guide walks you through the steps to resolve this error effectively, ensuring your system runs smoothly again. Before starting, ensure you have administrator rights on your PC and an active internet connection, as some steps require downloading system files or updates.
What You’ll Need
- Administrator access to your Windows PC
- Stable internet connection
- Basic familiarity with Command Prompt
- Optional: Windows repair or installation media (USB/DVD)
Step-by-Step
- Open Command Prompt as Administrator:
- Press Windows key + X and select “Command Prompt (Admin)” or “Windows Terminal (Admin)” depending on your version.
- If prompted, confirm with Yes to grant administrative privileges.
- Check the current DISM version:
DISM /Online /Get-Features | findstr /I "Dism"
This confirms DISM is accessible and working.
- Run the DISM command with the correct syntax:
DISM /Online /Cleanup-Image /RestoreHealth
If you encounter error 87, proceed to the next step.
- Verify the command syntax and ensure no extra spaces or typos:
DISM /Online /Cleanup-Image /RestoreHealth
The command must be exactly as shown.
- If error 87 persists, specify the source manually:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
Replace “C:\RepairSource\Windows” with the path to your Windows installation media or mounted ISO.
- Mount Windows installation media if necessary:
- Insert your Windows installation USB or DVD.
- Note the drive letter (e.g., D:).
- Use that drive letter in the /Source parameter, e.g., D:\Sources\install.wim or install.esd.
- Run the command again with the source specified:
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim /LimitAccess
Adjust the path as necessary. This often fixes error 87 caused by incorrect syntax or missing files.
- Wait for the process to complete. Do not interrupt it. It may take several minutes.
- Once finished, restart your PC and run the command again to verify:
DISM /Online /Cleanup-Image /CheckHealth
and
DISM /Online /Cleanup-Image /ScanHealth
to confirm the system health.
Common Mistakes
- Using incorrect command syntax or typos.
- Forgetting to run Command Prompt as Administrator.
- Not specifying the correct source path for the installation media.
- Running commands on a disconnected or unstable internet connection when online repair is needed.
- Interrupting the process mid-way, which can corrupt system files.
Tips
- Always run Command Prompt as Administrator to avoid permission issues.
- Use the latest Windows media for the source files to ensure compatibility.
- If unsure about the source path, create a Windows recovery drive or ISO and mount it.
- Run the System File Checker (SFC) after fixing DISM errors:
sfc /scannow
- Keep your Windows updated to prevent future DISM errors.
Troubleshooting
If the above steps do not resolve DISM error 87, consider the following troubleshooting tips:
- Check your command syntax: Re-verify that the command is typed correctly, especially the /Source path and other parameters.
- Use the Windows repair media: Sometimes, the default source does not work; using a different Windows ISO or USB can help.
- Run Windows Update Troubleshooter: Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Update, then run it to fix any underlying issues.
- Perform a system restore: If errors persist, restore your system to a previous restore point when DISM was functioning properly.
- Reinstall Windows: As a last resort, consider reinstalling Windows to fix deep system corruption.
Frequently Asked Questions
1. What causes DISM error 87 on Windows?
This error often occurs due to incorrect command syntax, missing or corrupted system files, or using incompatible Windows media as the source.
2. Can I fix DISM error 87 without reinstalling Windows?
Yes, most cases can be resolved by correcting the command syntax, specifying the correct source, and running commands with administrator rights. Reinstalling is usually unnecessary.
3. Do I need to disconnect from the internet when running DISM?
Not always. Running online repair commands generally requires an internet connection. However, specifying a local source with /Source can allow offline repairs.
4. What is the best way to find the correct source files for DISM?
Use a matching Windows installation media (USB, DVD, ISO) for your current version and edition. Mount the ISO or insert the media and locate the install.wim or install.esd file in the Sources folder.
5. How long does the DISM process usually take?
The process can take anywhere from 10 to 30 minutes depending on system speed and the extent of repairs needed. Be patient and do not interrupt.
]
Related
- How to Fix AirPlay Not Working on iPhone in iOS 17
- Fix Airplane Mode Not Working in Windows 11 Easily
- How to Fix Adobe Photoshop Not Working on Windows 11