Windows · Sharing Violation

Windows Error Code 0x80070020

The file or device is in use by another process.

errorLast verified 2026-11-10Microsoft Learn: System Error Codes
Quick answer

The file or device is in use by another process.

Code0x80070020
ProductWindows
Company / originMicrosoft · United States
CategoryOperating Systems
Platform / versionsWindows 10, Windows 11, Windows Server 2016+ · Varies by component
Severityerror
Official sourceMicrosoft Learn: System Error Codes ↗
Last verified2026-11-10

What does Windows error 0x80070020 mean?

0x80070020 is the HRESULT for ERROR_SHARING_VIOLATION (32). Windows cannot open, replace, or delete the file because another process holds an incompatible share lock. It is common during updates and installers.

Common causes

  • The file is open in another application or a background service.
  • Antivirus, backup, or the search indexer is scanning the file.
  • An installer or updater is still holding a handle after a failed run.

How to fix it

  1. Step 1

    Close the application that has the file open, then retry the operation.

  2. Step 2

    Restart Windows or use Resource Monitor to find the process holding the handle.

  3. Step 3

    For a failed update, run the installer again after a clean boot or use the vendor's offline package.

When to escalate

Before you escalate: If the code returns after a reboot, a repair install, and a clean driver update, collect the exact code, the affected app or update KB, Event Viewer entries around the failure, and a system information export, then contact Microsoft support or the app vendor.

Related codes

CodeNameWhat it means
0x80004005Unspecified ErrorA generic COM/HRESULT failure with no more specific code.
0x80070002File Not FoundWindows cannot find the file or path required by the operation.
0x80070005Access DeniedThe operation was denied because the account or process lacks permission.
0x8007000ENot Enough MemoryThe operation ran out of memory.
0x80070032The Request Is Not SupportedThe operation is not supported by the target or component.

Source & verification

This page was checked against Microsoft Learn: System Error Codes on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with Microsoft. Always confirm destructive or security-sensitive steps with the official documentation.