PC and Mac Error CodesWindows PC and Mac errors explained

Home › All codes › 0x80070020

Windows Update

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

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.

  1. Restart the PC and, before opening anything, run the update again.Related Microsoft page: Troubleshoot problems updating Windows
  2. 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
  3. 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)

ERROR_SHARING_VIOLATION

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)

Windows Update error

InstallFileLocked

Source: Windows Update error codes by component

Windows Update error

ERROR_SHARING_VIOLATION

Source: Windows Update common errors

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.

All Windows Update errors

Related codes