0x80070020 - A file is in use by another program
0x80070020 Microsoft name: ERROR_SHARING_VIOLATION
What it means
Windows could not use a file because another program has it open. The Windows error is Sharing Violation.
This number is listed more than once in Microsoft's tables (see the source box). Use the entry that matches where you saw it.
Where you see it
Windows Update and upgrades, often while backup or antivirus programs are running.
Likely causes
- A backup or security program is scanning the same files.
- A previous update is still working in the background.
- An app is holding the file open.
Three safe steps, in order
Try them one at a time and test after each. No registry edits, no repair tools to buy, and no switching off your security. If a step needs a driver, firmware or Windows installation media, get it only from Microsoft or your device maker.
- Restart the PC and, before opening anything, run the update again.Related Microsoft page: Troubleshoot problems updating Windows
- Close backup, sync and other background tools, or do a clean start as Microsoft describes, then retry. Turn things back on afterwards.Related Microsoft page: How to perform a clean boot in Windows
- Run the Windows Update troubleshooter.Related Microsoft page: Fix Windows Update errors
Stop and get help when…
it happens only during an upgrade and the rollback repeats. Microsoft's upgrade guide lists this exact code.
Source and date
- Official Microsoft reference
- System Error Codes (WinError.h)
- More Microsoft help
- Fix Windows Update errors
- Date checked
- 24 November 2026. Microsoft changes its pages; if a step no longer matches, trust the Microsoft page.
Win32 error 32 wrapped as an HRESULT (0x8007xxxx)
Microsoft describes it as: “The process cannot access the file because it is being used by another process.”
Source: System Error Codes (WinError.h) (Microsoft Learn content, CC BY 4.0)
The wording above is ours. Where a box quotes Microsoft's description, it comes from Microsoft Learn documentation published under CC BY 4.0 and is credited to the page linked.