0X00000057

ERROR_INVALID_PARAMETER 0x57: What It Means and How to Fix It

That 0x57 error usually means a driver or app handed Windows bad data. Here's the exact fix order that actually works.

Quick answer: ERROR_INVALID_PARAMETER (0x57) means a program or driver handed Windows an argument it couldn't accept — fix it by updating or rolling back the driver, checking the specific app's settings, and repairing corrupted system files.

I've seen this error pop up in three places more than anywhere else: printing to a network printer after a Windows update, plugging in a USB device with a finicky driver, and mounting a network share with a stale credential. The error code 0x57 (decimal 87) is what Windows returns when a function call gets a parameter that's out of range, the wrong type, or just plain wrong. It's not a crash. It's Windows saying "I got something I don't know what to do with."

The frustrating part is that Windows doesn't tell you which parameter. It just throws 0x57 and moves on. So you have to work backwards from the context. If you just tried to print, it's the print subsystem. If you plugged in a device, it's the driver. If you mapped a drive, it's the network layer. I know this error is maddening because it gives you almost nothing to go on. Let's narrow it down.

Step-by-step fixes

1. Identify what triggered it

Open Event Viewer and look for the event that fired right before the error. The Application and System logs are your best bets.

eventvwr.msc

Sort by time. Look for red error entries within a minute of when you saw 0x57. That source name — print spooler, disk, USB hub, SMB client — tells you which of the fixes below to start with.

2. Update or roll back the driver

Nine times out of ten, this is a driver problem. A bad INF file or a driver that got half-installed by Windows Update will pass garbage to the kernel and produce 0x57 on the very next call.

  1. Right-click Start, pick Device Manager.
  2. Find the device tied to your error — printer, USB controller, network adapter, disk drive.
  3. Right-click it, choose Properties, hit the Driver tab.
  4. If "Roll Back Driver" is available, click it. That undoes the last driver update, which is usually the culprit.
  5. If it's greyed out, click Update Driver, then "Search automatically."

If Windows Update installs the same broken driver again, grab the vendor's version directly from their site. Intel, Realtek, and Brother all have their own driver packages that skip the Windows catalog entirely.

3. Clear the print spooler (if printing triggered it)

Printing is the single most common trigger for 0x57. A corrupt spool file or a printer driver that can't handle the document's paper size will throw this every time.

net stop spooler
del /Q /F %systemroot%\System32\spool\PRINTERS\*
net start spooler

Run that in an elevated Command Prompt. Then remove and re-add the printer. Yes, actually delete it — don't just update the driver on the existing queue. Old print queues carry old settings that keep causing the same error.

4. Repair system files

If nothing obvious in Device Manager looks wrong, the 0x57 might be coming from a corrupted system DLL. Run both SFC and DISM. SFC alone misses a lot; DISM repairs the image SFC pulls from.

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

Reboot after both finish. This step fixes maybe 20% of the 0x57 cases I've seen, but it's cheap and worth doing before you go deeper.

5. Check network share credentials

Mapping a drive with a cached credential that no longer works will produce 0x57 immediately on connect. Windows tries to reuse the old session and the server rejects the parameter.

net use * /delete /y
cmdkey /list
cmdkey /delete:targetname

Delete the stale saved credential, then remap the drive with fresh credentials. If you're on a domain and your password changed, this is almost certainly your issue.

Alternative fixes if that didn't work

Check for third-party software conflicts

Antivirus, VPN clients, and disk cloning tools hook into low-level Windows APIs and can inject bad parameters. Cisco AnyConnect and some older Kaspersky builds have both caused 0x57 in my experience. Temporarily disable them and retry the action that failed.

Run the app as administrator

Some apps pass paths or handles that Windows only accepts under elevated context. Right-click the app, Run as administrator. If that fixes it, the app was designed assuming elevation — you'll need to set that permanently in the shortcut's Compatibility tab.

Reinstall the affected application

If the error comes from one specific program every time, that program has a corrupted config or a missing dependency. Uninstall it, delete any leftover folder under %AppData% and %ProgramData%, then reinstall fresh.

Check regional and language settings

I've seen 0x57 from apps that choke when the system locale doesn't match their expected number or date format. Change Windows display language to English (United States) temporarily and test. If the error vanishes, that confirms it.

How to keep this from coming back

Pause driver updates for a week after they roll out. Set Windows Update to "Notify to schedule restart" and check the optional driver updates manually before installing. That one habit kills most 0x57 cases before they start.

Keep your print and network drivers from the vendor, not from Windows Update. Vendor drivers ship with the specific parameter handling that Windows' generic driver lacks. And when you map network drives, save credentials per-connection rather than using the global credential manager — it makes cleaning up stale entries way easier.

Finally, if this error keeps hitting the same app on the same machine, check the vendor's known issues page before you dig through Windows. There's a decent chance someone hit it first and posted the exact fix.

Related Errors in Windows Errors
0X0000215C Fix AD object class mismatch error 0x0000215C when moving users 0X800F0230 Driver install fails with 0X800F0230 on Windows 10/11 Google Search redirect loop fix for Windows 0XC00A000F STATUS_CTX_MODEM_RESPONSE_VOICE (0XC00A000F): The Callback Voice Error Fix

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.