sodcalculator

10 Tech How-To

Fix Parameter is Incorrect Error 87 Windows 10

Guide 10-56322 · Updated · Step by step

If you see “The parameter is incorrect” (Error 87) on Windows 10, the fix usually involves repairing corrupted system files, checking disk errors, or resetting the Windows Update components. This error commonly appears when copying files, opening drives, or running certain commands, and it signals that Windows received an invalid argument from a program or driver.

What Causes Error 87 on Windows 10?

Error 87 is a system-level error code that means a function call received an incorrect parameter. In Windows 10, it often surfaces in these scenarios:

  • Copying or moving files to an external drive, USB stick, or network location
  • Opening a drive or folder in File Explorer
  • Running system commands like sfc /scannow or chkdsk
  • Windows Update failing with error 0x80070057 (which is the same underlying code)
  • Using backup software or syncing tools that access protected system areas

The root cause is rarely a single issue. It can be a corrupted file system, a failing driver, a damaged registry entry, or a leftover from a previous update. Because the error is generic, you need to test fixes in order of likelihood and cost.

Before You Start: Basic Checks

Try these quick checks first. They take less than a minute and solve a surprising number of cases.

  1. Restart your PC. A temporary glitch in a service or driver often clears with a reboot.
  2. If the error appears when accessing a USB drive or SD card, try a different port or another computer. If it works elsewhere, the issue is your system, not the device.
  3. Run Windows Update manually from Settings > Update & Security. Sometimes a pending update is stuck and causes the error.
  4. Check if the error appears only with one specific file or folder. If so, that file may be corrupted or have unusual permissions.

Fix 1: Run System File Checker and DISM

Corrupted system files are the most common cause. The System File Checker (SFC) scans protected files and replaces bad ones. Deployment Imaging Service and Management (DISM) repairs the system image that SFC relies on.

  1. Open Command Prompt as administrator (type “cmd” in Start, right-click, choose “Run as administrator”).
  2. Type sfc /scannow and press Enter. Wait for the scan to finish (it can take 15-20 minutes).
  3. If SFC finds errors but cannot fix them, run DISM /Online /Cleanup-Image /RestoreHealth in the same window.
  4. Restart your PC and try the operation that failed.

If SFC reports that it found corrupted files but was unable to fix some, run DISM first, then SFC again. The DISM command repairs the underlying image, which often allows SFC to complete its job.

Fix 2: Check the Disk for Errors

File system corruption on the drive itself can trigger Error 87 when reading or writing data. The built-in Check Disk tool finds and repairs bad sectors and logical errors.

  1. Open an elevated Command Prompt (as above).
  2. Type chkdsk C: /f /r and press Enter. Replace C: with the drive letter that is causing the problem.
  3. If the drive is in use, you will be asked to schedule the check for the next restart. Type Y and reboot.

For external drives, you can run chkdsk E: /f (replace E: with the correct letter) without restarting. The /r flag takes longer but also scans for bad sectors. If chkdsk finds errors, it will attempt to fix them automatically.

Fix 3: Reset Windows Update Components

If the error appears during Windows Update (often as 0x80070057), the update cache or service settings may be corrupted. Resetting the update components is a common fix.

  1. Open an elevated Command Prompt.
  2. Stop the relevant services by typing these commands one at a time, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  3. Rename the SoftwareDistribution folder (where updates are downloaded) and the catroot2 folder (where update signatures are stored):
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
  4. Restart the services with:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
  5. Close the Command Prompt and try Windows Update again.

This does not delete your personal files; it only clears the update cache. The old folders remain as backups and can be deleted later if everything works.

Fix 4: Check for Driver or Permission Issues

Sometimes the error is tied to a specific hardware driver, especially for external storage or network adapters. Updating or reinstalling the driver can resolve it.

  1. Right-click the Start button and select Device Manager.
  2. Expand the category for the device (e.g., Disk drives, Universal Serial Bus controllers).
  3. Right-click the device and choose Update driver > Search automatically.
  4. If that does not help, right-click again and choose Uninstall device, then restart your PC. Windows will reinstall the driver automatically.

Permission issues are less common but possible. If the error occurs when accessing a folder on another drive, right-click that folder, go to Properties > Security, and ensure your user account has Full Control. If you are unsure, do not change permissions on system folders (like Windows or Program Files) without guidance.

When to Try a System Restore or Reset

If none of the above works, you can try a System Restore to a point before the error started. Search for “Create a restore point” in Start, open the System Properties, click System Restore, and follow the wizard. This keeps your personal files but removes recently installed programs and updates.

As a last resort, you can reset Windows 10 from Settings > Update & Security > Recovery > Reset this PC. Choose “Keep my files” to preserve your documents and photos, but be aware that installed applications will be removed. This is a heavy step, so only do it after trying the other fixes.

Frequently Asked Questions

Why does Error 87 appear when copying files to a USB drive?

This usually means the USB drive has file system corruption or the USB controller driver is outdated. Run chkdsk on the drive (e.g., chkdsk E: /f) and update the USB driver in Device Manager. If the drive is old or failing, consider replacing it.

Can Error 87 cause data loss?

No, the error itself does not delete data. However, if it is caused by disk corruption, the underlying issue could lead to data loss if not fixed. Back up important files before running chkdsk with /r, as that command can sometimes mark bad sectors and make files inaccessible.

Is Error 87 the same as 0x80070057?

Yes. Error 87 is the decimal representation of the hexadecimal code 0x80070057, which is what Windows Update and some programs display. The fixes for both are the same, with the update component reset being particularly effective for the Windows Update variant.

Will resetting Windows Update components delete my installed updates?

No. It only clears the download cache and resets the update services. Your installed updates and personal files remain untouched. You may need to re-download some updates, but they will install again automatically.

What if the error appears when I open a specific folder?

That folder may have a corrupted thumbnail cache or an invalid file association. Try deleting the file thumbcache.db in that folder (you may need to enable hidden files) or run sfc /scannow. If the folder is on a network drive, check the network credentials and mapping.

Should I use third-party registry cleaners for this error?

No. Registry cleaners are not recommended by Microsoft and can cause more problems. The built-in SFC and DISM tools are safer and address the actual system file issues that cause Error 87.

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 →