DISM (Deployment Imaging Service and Management) error 0x80070057, which often appears alongside “Access denied� or “The parameter is incorrect,� usually occurs when the DISM tool cannot access a file or registry key it needs, or when a command-line parameter is malformed. This guide walks you through the most reliable fixes, from simple command corrections to deeper permission and system file repairs. Before you start, make sure you are logged in with an account that has administrative privileges, and close any other programs that might interfere with system files.
What You’ll Need
- An administrator account on the affected Windows PC
- Internet connection (for the online repair option)
- Windows installation media (DVD or USB) if the offline repair is needed
Step-by-Step
- Run Command Prompt as Administrator
Press Windows + X and select “Command Prompt (Admin)� or “Windows Terminal (Admin)� from the menu. If prompted by User Account Control, click “Yes�. - Check the DISM Command Syntax
Typedism /online /cleanup-image /restorehealthand press Enter. The most common cause of error 0x80070057 is a typo or incorrect switch. Ensure there are no extra spaces, and note that the slash before “online� is a forward slash, not a backslash. - Try the Basic Scans
If the full restore command fails, run a simpler check first:dism /online /cleanup-image /scanhealth
If that works, try the restore command again. If it still fails, proceed to the next step. - Check Windows Update Service
DISM relies on Windows Update to download healthy files. Ensure the Windows Update service is running:
Press Windows + R, typeservices.msc, and press Enter. Find “Windows Update� in the list, right-click it, and select “Start� if it’s not running. If it’s already running, right-click and choose “Restart�. - Use the Offline Repair with Installation Media
If the online repair still fails, you can use your Windows installation media:- Insert your Windows DVD or USB drive.
- Note the drive letter (e.g.,
D:). - Run the following command, replacing
D:with your actual drive letter:dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim - If you have a
install.esdinstead ofinstall.wim, use that filename instead.
- Run SFC (System File Checker)
After DISM completes (or if it fails), runsfc /scannowin the same elevated Command Prompt. This will scan and repair corrupted system files that might be causing the DISM error. - Repair the Component Store with DISM from WinRE
If all else fails, boot into Windows Recovery Environment (WinRE):- Hold Shift while clicking “Restart� from the Start menu.
- Go to Troubleshoot → Advanced Options → Command Prompt.
- Run
dism /image:C:\ /cleanup-image /restorehealth(replaceC:with your system drive letter, which might be different in WinRE).
Common Mistakes
- Typing the command incorrectly – A missing space or a backslash instead of a forward slash can trigger this error.
- Not running as administrator – DISM requires elevated privileges; a standard user account will get “Access denied�.
- Using the wrong source path – If you specify a source, make sure the path is correct and the install.wim or install.esd file exists.
- Ignoring Windows Update – DISM uses Windows Update; if that service is disabled, DISM will fail.
- Running DISM while other system maintenance is in progress – Close any other repair tools or update processes.
Tips
- Always run SFC after DISM – DISM repairs the component store, SFC then fixes system files using that store.
- Use the correct Windows version – The installation media must match your Windows version (e.g., Windows 10 Pro vs. Home, 64-bit vs. 32-bit).
- Check disk space – DISM needs temporary space; ensure you have at least 10 GB free on the system drive.
- Disable antivirus temporarily – Some security software can interfere with DISM’s access to files. If you do this, re-enable it immediately after.
- Create a restore point – Before making major repairs, create a system restore point so you can roll back if needed.
Troubleshooting
If the error persists after following all steps, try these additional measures:
- Check the CBS log – Look at
C:\Windows\Logs\CBS\CBS.logfor detailed error messages. Search for “0x80070057� to see which file or operation failed. - Run DISM with /NoRestart – Sometimes a pending reboot causes issues; run
dism /online /cleanup-image /restorehealth /norestart. - Use the /LimitAccess flag – This prevents DISM from using Windows Update as a source, forcing it to use only the specified source:
dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim /limitaccess - Perform a Windows Update reset – Stop the Windows Update service, rename the SoftwareDistribution folder, and restart the service. This can clear corrupt update cache.
- Repair the registry – If the error mentions a registry key, you might need to restore a backup or use system restore.
- Consider a repair install – If nothing works, an in-place upgrade repair (using the Windows Media Creation Tool) can fix deep corruption without losing files.
Frequently Asked Questions
Why does DISM return “Access denied� even when I run it as administrator?
Even as administrator, DISM can be blocked by Group Policy or by a corrupted system file. Try running it from WinRE (Step 7) or check the CBS log for the exact file that is inaccessible.
Can I use DISM on Windows 7 or 8?
Yes, but the syntax may differ slightly. On Windows 7, DISM is available but some switches like /restorehealth are not supported; use /scanhealth instead. On Windows 8 and later, the full command works.
What does error 0x80070057 actually mean?
It translates to “The parameter is incorrect.� In the context of DISM, it usually means a command-line argument is malformed, or DISM cannot read a file due to permissions or corruption.
Will running DISM delete my personal files?
No, DISM only repairs system files and the component store. It does not touch your documents, photos, or installed applications.
How long does DISM take?
It can take anywhere from 10 minutes to over an hour, depending on the speed of your drive and the extent of corruption. Do not interrupt it.
Do I need to run DISM before or after SFC?
Run DISM first, then SFC. DISM repairs the source files that SFC uses, so running SFC after ensures it can fix corrupted system files.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Desktop Search Widget on Windows 11
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers
- How to Exit Vi in Linux: A Simple Guide