How to Resolve DISM Error 87: Cleanup-Image Option is Unknown
Experiencing DISM Error 87 while trying to run the command-line tool? This guide will walk you through the steps to fix this issue, specifically focusing on the “Cleanup-Image option is unknown” error. By following this tutorial, you will not only learn how to correct the command syntax but also how to address underlying system file issues, ultimately restoring your PC’s health and functionality.
Before you begin, make sure you have administrative privileges on your Windows system. This guide applies to Windows 10 and Windows 11. No software downloads are required, but you will need to access the Command Prompt and the Services application. Ensure your system is up-to-date to avoid any compatibility issues.
Step 1: Open the Services Application
To begin, you need to access the Services application, which manages the various services running on your Windows system. Follow these steps:
- Click on the Start Menu on your computer.
- Type services into the search bar and select the Services application from the results.
Step 2: Locate the Windows Module Installer Service
Once the Services window is open, you will need to find the Windows Module Installer service, which is crucial for installing Windows updates. Here’s how to do it:
- Scroll through the list of services until you find Windows Module Installer.
- Right-click on it and select Properties.
Step 3: Configure the Service Startup Type
After opening the properties window for the Windows Module Installer, you will need to ensure it is set to start automatically:
- In the Startup type dropdown menu, select Automatic.
- Click Apply and then OK to save your changes.
Step 4: Start the Windows Module Installer Service
Next, you need to ensure that the service is running:
- Double-click on the Windows Module Installer service entry.
- In the Service status section, check if it says “Stopped”. If it does, click the Start button to run the service.
- Once the service is running, click OK to close the window.
Step 5: Run the DISM Restore Health Command
Now that the Windows Module Installer service is set up correctly, you can run the DISM command to repair your system:
- Open the Command Prompt with administrative privileges. You can do this by searching for cmd in the Start Menu, right-clicking it, and selecting Run as administrator.
- Type the following command and press Enter:
- Wait for the process to complete. It may take some time depending on your system’s performance and issues.
dism /Online /Cleanup-Image /RestoreHealth
Step 6: Restart Your Computer
If you continue to experience issues after running the command, it may be helpful to restart your computer. This can help ensure that all changes are properly applied.
Extra Tips & Common Issues
While following these steps, here are some additional tips to consider:
- Always ensure that your Windows is fully updated.
- If you still receive the error after completing these steps, consider running the command in Safe Mode.
- Check for any third-party software that may interfere with Windows services.
Conclusion
By following this guide, you should have successfully resolved the DISM Error 87. Understanding how to configure services and run repair commands is essential for maintaining your system’s health. If you continue to encounter issues, further troubleshooting may be required, including checking for corrupted system files or performing a full system scan.
Frequently Asked Questions
What is DISM?
Dism (Deployment Imaging Service and Management Tool) is a command-line utility in Windows that is used to service and prepare Windows images, including those used for Windows PE, Windows Recovery Environment, and Windows Setup.
Why do I receive Error 87?
Error 87 usually indicates that there is an issue with the command syntax or that required services are not running properly. Ensuring services like the Windows Module Installer are configured correctly can help resolve this.
Can I run DISM without administrative privileges?
No, administrative privileges are required to run DISM commands effectively. Make sure you open the Command Prompt as an administrator.