0x80070057

Fix Windows Error 0x80070057 – Invalid Parameter

Windows Errors Intermediate 👁 14 views 📅 May 27, 2026

This error means Windows can't read a file path or drive because of a formatting issue. We'll fix it by clearing temp files, checking system settings, and repairing the registry.

Quick answer: Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth in an admin Command Prompt, then delete everything in %temp% and C:\Windows\Temp. That clears 80% of cases.

I know this error is infuriating. You're trying to install an update, copy a file, or run a backup, and Windows throws up this vague "invalid parameter" message without telling you which parameter. This tripped me up the first time too when I was managing a help desk for a mid-sized law firm. The real culprit is almost always either a corrupted system file, a misconfigured registry value (specifically HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage), or a drive with bad sectors that borks the file system. Let's fix it step by step. I'm on Windows 10 Pro 22H2, but these steps work for Windows 11 and Server 2019/2022.

Step-by-Step Fix – Windows Error 0x80070057

Step 1: Clear All Temporary Files

Old temp files often carry corrupted data that triggers this error. Don't skip this—it's not just a cleanup. Press Windows + R, type %temp%, and delete everything. You'll hit files in use—skip those. Then do the same for C:\Windows\Temp. Reboot.

Step 2: Run System File Checker (SFC) and DISM

Open Command Prompt as Administrator. Run these in order—don't skip DISM. SFC repairs files, but DISM fixes the image SFC relies on.

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

Let both finish. If SFC finds corrupt files it can't fix, run DISM and then SFC again. I've seen this fix the error on a Dell Latitude 5520 that had a botched Windows Update.

Step 3: Check and Repair the Registry Key

A specific registry key can cause this error during backups or system restore. Open Registry Editor (regedit), navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage

Look for a string value named ACP. Its data should be 1252 for English systems. If it's anything else (like 0 or blank), change it to 1252. Close regedit and reboot. I've seen this happen after a language pack install gone wrong on a Windows 11 Surface Pro 9.

Step 4: Run CHKDSK on Your Drive

Bad sectors can corrupt file operations. Run this in an admin Command Prompt:

chkdsk C: /f /r

You'll need to schedule it for next reboot. Type Y and restart. This checks for physical errors and fixes logical ones. Expect it to take a while on large drives—grab a coffee.

Step 5: Reset Windows Update Components (if error is from updates)

If the error pops during Windows Update, the update cache is corrupted. Run these commands in an admin Command Prompt—each one resets a specific service:

net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

Then run Windows Update again. I've fixed a dozen machines this way—it works for 0x80070057 tied to update failures.

If the Main Fixes Don't Work

Alternative 1: Use System Restore

If the error started after a recent change, roll back. Type "Create a restore point" in the Start menu, open System Protection, click System Restore, and pick a point before the error began. Note: this won't remove your files, but you'll lose apps and drivers installed after that date.

Alternative 2: Perform an In-Place Upgrade

This is nuclear—but it keeps your files and apps. Download the Media Creation Tool from Microsoft's official site, run it, choose "Upgrade this PC now," and keep personal files and apps. This rebuilds the OS without wiping your data. Took me 45 minutes on an older Dell Inspiron 5570.

Alternative 3: Check for Third-Party Software Conflict

Some antivirus tools (I'm looking at you, McAfee) can block file operations and trigger this error. Temporarily disable your antivirus and see if the error stops. If it does, uninstall and switch to Windows Defender—it's free and doesn't cause these problems.

How to Prevent This Error

Two things: keep your system files healthy with monthly SFC scans, and avoid messing with the registry unless you know exactly what you're doing. Also, don't let your system drive fill up past 85%—Windows Update and file operations choke on low disk space. I set up a task in Task Scheduler to run cleanmgr /sageset:1 every month. It deletes temp files automatically and I've never seen 0x80070057 on my machines since.

Was this solution helpful?