On Windows 10, 0x80070020 translates to ERROR_SHARING_VIOLATION: the process cannot access the file because it is being used by another process. In update terms, Windows Update needs to overwrite system files that your antivirus, a background installer, or a utility currently has locked. The update is fine; the timing is the problem.
Laptops are especially prone to this because OEM utilities, updaters, and security suites all compete for the same files during the narrow window when updates install. The strategy below removes the competition one layer at a time until the update gets the exclusive access it needs.
The Windows 11 guide handles this error on Windows 11, and the companion guide for 0x80070652 helps when the competing process is a stuck installer. Work through these in order.
Why this happens
- Antivirus real-time scanning holds the files open: Third-party security suites scan files the moment they are touched, which keeps handles open on exactly the executables and libraries Windows Update is trying to replace — the number-one cause of 0x80070020.
- Another installer is running at the same time: If a program’s own updater, a Store app update, or a second Windows Installer session is active, its file locks collide with the update engine’s, and one of them loses with this error.
- A previous update attempt left stale locks: An interrupted update can leave processes or pending file operations holding references that are never released until the system restarts, so every retry hits the same wall.
- Background utilities hook system files: System optimizers, overlay tools, and some gaming utilities inject into or monitor system components, keeping those files open and unreplaceable during servicing.
- Windows Search or indexing has files open: The indexer occasionally holds handles on files being serviced, particularly right after boot when it is catching up on a backlog.
- Malware is protecting its own files: Malicious software sometimes locks the very system files it has infected to resist removal, and an update trying to replace those files trips the sharing violation.
- The update queue itself is in a conflicted state: Corrupted pending operations in the servicing stack can make the engine fight itself for file access, producing a sharing violation with no visible third-party culprit.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Restart and retry before anything else
Use Restart rather than Shut down — on machines with Fast Startup enabled, shutdown hibernates the kernel session and preserves some locks, while Restart truly reinitializes everything.
- Close all open programs and save your work.
- Click Start > Power > Restart (not Shut down).
- After logging back in, wait two minutes for startup activity to settle.
- Open Settings > Update & Security > Windows Update and click Check for updates.
- If the error is gone, you are done — the lock was transient.
Fix 2: Temporarily disable third-party antivirus
Re-enable protection immediately after the test. The long-term fix is an exclusion or a settings change in the suite, not running unprotected.
- Open your third-party antivirus and disable real-time protection and any behavior shield.
- Keep Windows Security’s own real-time protection active as your safety net.
- Run the update from Settings > Update & Security > Windows Update while the third-party suite is paused.
- If it succeeds, re-enable the suite, then add the Windows servicing folders to its exclusions per the vendor’s documentation.
- If it still fails, re-enable protection and continue — the AV is innocent.
Fix 3: End stuck installer processes
Check both the Processes list and the Details tab, since installer processes sometimes hide under generic names.
- Press Ctrl + Shift + Esc to open Task Manager.
- On the Processes tab, look for any Setup, Installer, or msiexec entries and end them.
- Switch to the Details tab and end any remaining
msiexec.exeprocesses. - Also end obvious third-party updater processes (OEM update tools, game launchers).
- Retry the update in Settings > Update & Security > Windows Update.
Fix 4: Perform a clean boot, then update
This is diagnostic and therapeutic in one step: many users simply perform updates in a clean boot whenever the error appears, then return to normal startup.
- Press Win + R, type
msconfig, and press Enter. - On the Services tab, check Hide all Microsoft services, then Disable all.
- In Task Manager’s Startup tab, disable all startup items.
- Restart, run the update from Settings > Update & Security > Windows Update, then undo the msconfig changes and restart again.
- For background on isolating the culprit, Microsoft’s Windows support hub documents the clean-boot procedure in detail.
Fix 5: Restart the Windows Update services
This takes a minute from an elevated command prompt and is harmless to installed updates.
- Open Command Prompt as administrator.
- Run
net stop wuauservandnet stop bits. - Wait ten seconds, then run
net start bitsandnet start wuauserv. - Also restart the cryptographic service:
net stop cryptsvcthennet start cryptsvc. - Check for updates again.
Fix 6: Scan for malware and repair system files
Run the scan first so SFC restores files that are actually clean rather than re-validating infected ones.
- Open Windows Security > Virus & threat protection and run a Full scan.
- If anything is found, remove it and restart.
- Open Command Prompt as administrator and run
sfc /scannow. - After the scan completes, restart once more.
- Retry the update — with the hooks gone, the sharing violation should be gone too.
Closing
On Windows 10, sharing violations during updates are almost always a third-party program refusing to let go of system files. The discipline is simple: restart first, suspect the antivirus second, and use a clean boot to prove it. Updates need a quiet moment with exclusive file access — give them that moment and 0x80070020 disappears.
