Windows Error Code 0x80070020
The file or device is in use by another process.
The file or device is in use by another process.
| Code | 0x80070020 |
| Product | Windows |
| Company / origin | Microsoft · United States |
| Category | Operating Systems |
| Platform / versions | Windows 10, Windows 11, Windows Server 2016+ · Varies by component |
| Severity | error |
| Official source | Microsoft Learn: System Error Codes ↗ |
| Last verified | 2026-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
- Step 1
Close the application that has the file open, then retry the operation.
- Step 2
Restart Windows or use Resource Monitor to find the process holding the handle.
- Step 3
For a failed update, run the installer again after a clean boot or use the vendor's offline package.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
0x80004005 | Unspecified Error | A generic COM/HRESULT failure with no more specific code. |
0x80070002 | File Not Found | Windows cannot find the file or path required by the operation. |
0x80070005 | Access Denied | The operation was denied because the account or process lacks permission. |
0x8007000E | Not Enough Memory | The operation ran out of memory. |
0x80070032 | The Request Is Not Supported | The 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.