sodcalculator

10 Tech How-To

Fix DISM Error 0x80070057 Parameter Incorrect

Guide 10-15696 · Updated · Step by step

DISM error 0x80070057 (“The parameter is incorrect”) usually appears when you try to repair or service a Windows image using the Deployment Imaging and Servicing Management tool. This guide walks you through the most reliable fixes, from simple syntax corrections to checking system files and storage issues.

What You’ll Need

  • A Windows 10 or Windows 11 PC (the steps work on both)
  • Administrator access (you’ll open Command Prompt as admin)
  • A stable internet connection for the online repair option
  • Patience – some steps take several minutes

Step-by-Step

  1. Open Command Prompt as Administrator. Click the Start button, type cmd, right-click “Command Prompt” and choose “Run as administrator.” Confirm the UAC prompt.
  2. Check the syntax of your DISM command. The most common cause of error 0x80070057 is a typo or missing space. The correct basic form is:
    DISM /Online /Cleanup-Image /RestoreHealth
    Make sure there are spaces before each slash. If you’re using a custom source, the syntax is:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\path\to\install.wim /LimitAccess
  3. Run the command and note the exact error. If you get 0x80070057 immediately, it’s usually a syntax or permission issue. If it runs for a while then fails, it’s more likely a corrupted component store or disk problem.
  4. Verify you’re actually an administrator. Type whoami /groups and look for “Mandatory Label\High Mandatory Level”. If you don’t see it, you’re not elevated – close and reopen Command Prompt as admin.
  5. Check for hidden spaces or quotes. When copying a command from a website, invisible characters can sneak in. Type the command manually instead of pasting.
  6. Run SFC first. System File Checker can fix underlying corruption that confuses DISM. Type sfc /scannow and wait for it to finish. Then restart and try DISM again.
  7. Try the offline DISM scan. If online mode keeps failing, run:
    DISM /Online /Cleanup-Image /ScanHealth
    This only scans, doesn’t repair. If it also errors, move to the next step.
  8. Check your disk for errors. Open an admin Command Prompt and run chkdsk C: /f. You’ll need to restart the PC to let it run. This fixes file system issues that can cause DISM to misread files.
  9. Free up temporary space. DISM needs room to work. Open Settings → System → Storage and clear temp files. Or run cleanmgr and select “Temporary files” and “Windows Update Cleanup”.
  10. Use the Windows Update troubleshooter. Go to Settings → System → Troubleshoot → Other troubleshooters → Windows Update → Run. This can fix component store corruption.
  11. Try a different source for the repair. If you have a Windows installation USB or ISO, mount it and use its install.wim as the source. For example:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim
    Replace D: with your drive letter.
  12. If all else fails, reset Windows. Go to Settings → System → Recovery → “Reset this PC”. Choose “Keep my files” to preserve personal data. This reinstalls Windows without deleting your documents.

Common Mistakes

  • Missing spaces before slashes. DISM is strict about syntax. DISM/Online fails; DISM /Online works.
  • Running without admin rights. Even if your account is an administrator, you must explicitly “Run as administrator” for DISM to work.
  • Using the wrong path in /Source. The path must point to the actual install.wim or install.esd file, not the folder containing it.
  • Pasting commands with hidden formatting. Copy from a plain text editor, or type manually.
  • Ignoring SFC. SFC and DISM work together; running only one may not fix the underlying issue.

Tips

  • Run DISM in a clean boot state to avoid interference from third-party antivirus or system utilities.
  • Use the /LogPath parameter to save a detailed log: DISM /Online /Cleanup-Image /RestoreHealth /LogPath:C:\dism.log. Review the log to see the exact failing component.
  • If you have a recent system restore point, try restoring before spending time on complex fixes.
  • Keep Windows fully updated – many DISM errors are fixed by cumulative updates.

Troubleshooting

If the error persists after trying all steps:

  • Check the CBS log. After a failed DISM, open C:\Windows\Logs\CBS\CBS.log in Notepad and search for “0x80070057”. The lines around it often show which component is causing trouble.
  • Try DISM with the /NoRestart flag. Sometimes a pending restart interferes. Use DISM /Online /Cleanup-Image /RestoreHealth /NoRestart.
  • Boot into Safe Mode. Restart, hold Shift and click Restart, then go to Troubleshoot → Advanced options → Startup Settings → Restart → press 4 for Safe Mode. Run DISM there – it eliminates driver and service conflicts.
  • Use Windows Media Creation Tool. Download the tool from Microsoft’s official site, create a bootable USB, then boot from it and choose “Repair your computer” → Troubleshoot → Advanced options → Command Prompt. Run DISM from there with the offline image path.
  • Check for third-party disk tools. Some disk encryption or partitioning software can lock files. Temporarily uninstall them, run DISM, then reinstall.
  • As a last resort, perform an in-place upgrade. Download the Windows ISO, mount it, and run setup.exe. Choose “Keep personal files and apps”. This reinstalls Windows while preserving your data and often resolves persistent DISM errors.

Frequently Asked Questions

What exactly causes DISM error 0x80070057?

It’s most often a malformed command (missing space or typo), lack of admin rights, or corrupted system files that DISM can’t read. Less commonly, it’s a full disk or a failing hard drive.

Can I ignore this error if Windows seems to work fine?

You can, but the underlying corruption may cause problems later, like failed updates or random crashes. It’s worth fixing to keep your system healthy.

Will running DISM delete my files?

No. DISM only repairs Windows system files. Your personal documents, photos, and apps are untouched.

How long does DISM /RestoreHealth take?

Typically 10-30 minutes, but it can take over an hour on slower systems or if the component store is severely corrupted. Don’t interrupt it.

Why does DISM work in some admin accounts but not others?

If the account isn’t truly elevated (even if it’s in the Administrators group), DISM will fail. Make sure you right-click and choose “Run as administrator”. Also, check if Group Policy restricts certain commands.

Is there a difference between SFC and DISM?

Yes. SFC scans and repairs protected system files. DISM repairs the Windows image itself, which SFC relies on. Running DISM first is often recommended, but if DISM errors, running SFC first can fix the image so DISM works.

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

The whole Tech How-To bed →