Windows PC Errors

How to Fix Windows Update Error 0x80070020

Error 0x80070020Plain English: Windows Update tried to use a file, but another program on your PC was already holding onto it — like two people tugging on the same document. Most of the time that other program is your antivirus scanning the update files. Free the file and the update sails through.
Quick answer: 0x80070020 means a program is blocking the files Windows Update needs. Restart your PC and retry the update, run the Windows Update troubleshooter, and temporarily disable your antivirus to confirm it is the culprit. If the block persists, clean boot to find the locking program, reset the Windows Update components, or install the update manually from the Microsoft Update Catalog.

What error 0x80070020 means

Under the hood, 0x80070020 is the system error ERROR_SHARING_VIOLATION — Windows-speak for "the process cannot access the file because it is being used by another process." When Windows Update downloads and stages its files, it expects exclusive access to them. If another running program opens one of those files at the same moment — typically to scan it, back it up, or sync it — the update hits a locked file, gives up, and reports 0x80070020 instead of telling you which program got in the way.

The usual suspects line up in a predictable order. Real-time antivirus is the runaway leader: scanners from Norton, McAfee, Bitdefender, Kaspersky, and even Windows Defender itself love to latch onto files the moment they change, and update files change a lot during an install. Next come third-party system utilities — disk cleaners, file-sync tools, backup agents, and "optimizer" software that hooks into system folders. Finally, a corrupted Windows Update cache can leave phantom locks of its own: the cache believes a download is still in progress long after it died, so every new attempt collides with a ghost of the old one. Your fixes should follow that same order — suspect the antivirus first, then background programs, then the cache.

Common causes

How to fix error 0x80070020 — step by step

Work through these fixes in order. Step 1 is free and resolves many cases; step 3 identifies the most likely culprit; the last two cover stubborn, cache-related blocks.

  1. Restart your PC and try the update once more. Save your work, restart the PC normally (not Shut down, which can hibernate instead of rebooting), and run Windows Update again right after logging in. File locks are often held by background processes that only restart in odd moments — a fresh boot clears them all, and this single step resolves 0x80070020 in a surprising number of cases.
  2. Run the Windows Update troubleshooter. Open Settings, go to Update and Security (Windows 10) or System (Windows 11), then Troubleshoot > Other troubleshooters, and click Run next to Windows Update. The troubleshooter scans for stuck services, corrupted download caches, and misconfigured update settings, and it applies its own fixes automatically — including releasing locks on the update data stores.
  3. Temporarily disable your antivirus, then retry the update. Right-click your antivirus icon in the system tray and choose Disable or Turn off protection for 10-30 minutes. If you use Windows Defender, go to Settings > Update and Security > Windows Security > Virus and threat protection > Manage settings and turn off Real-time protection. Run Windows Update immediately while protection is off — if it succeeds, your antivirus was the culprit, and you can re-enable protection right after. As a longer-term fix, add Windows Update exclusions or switch to a less aggressive real-time scanner.
  4. Clean boot to find the program holding the lock. Type msconfig in the Start menu and open System Configuration. On the Services tab, check Hide all Microsoft services, then click Disable all, and on the Startup tab open Task Manager and disable every startup item. Restart — now only Microsoft services are running — and try the update. If it works, re-enable your services and startup items in small groups, restarting between each batch, until the update fails again; the last group you turned on contains the program that was blocking the files.
  5. Reset the Windows Update components. Open Command Prompt as administrator and run net stop wuauserv, net stop bits, net stop cryptSvc, and net stop msiserver, then rename the update caches with ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and ren C:\Windows\System32\catroot2 catroot2.old. Restart the services you stopped with net start wuauserv, net start bits, net start cryptSvc, and net start msiserver. This rebuilds the folders Windows Update downloads into, eliminating any file the old cache had locked.
  6. Download and install the update from the Microsoft Update Catalog. Open Settings > Windows Update > View update history and note the KB number that failed. Go to catalog.update.microsoft.com, search that KB number, download the version matching your system (x64 for most PCs), and double-click it to install. Catalog installers use a different delivery path that bypasses the locked update agent entirely, so they succeed where automatic updates repeatedly fail with 0x80070020.

Did this fix it? Quick checklist

If 0x80070020 keeps returning no matter which steps you try, open Resource Monitor (search for it in the Start menu), go to the CPU tab, and type part of a filename from the failing update into the Associated Handles search box — it will show you exactly which process is holding the lock. Persistent file-locking across many files can also mean a failing drive, so run chkdsk C: /f /r from an elevated Command Prompt if you see disk errors alongside the update failures.

Frequently asked questions

What does error 0x80070020 mean?

Error 0x80070020 means the process cannot access the file because it is being used by another process — Windows Update tried to write or replace one of its files and another running program was holding a lock on it. It shows up as ERROR_SHARING_VIOLATION underneath. The most common cause is antivirus software (including Windows Defender's real-time protection) scanning or locking the update files, followed by third-party services and corrupted update caches.

Can antivirus cause Windows Update error 0x80070020?

Yes — it is the single most common cause. Real-time antivirus scanners from Norton, McAfee, Bitdefender, and even Windows Defender itself can lock the files Windows Update needs to write. If your updates fail with 0x80070020, temporarily disabling your antivirus and retrying the update is the quickest diagnostic. Remember to turn protection back on immediately afterward, and if the pattern repeats, set up proper exclusions for the Windows Update folders rather than disabling protection every month.

Will fixing 0x80070020 delete my files?

No. Restarting, running the troubleshooter, disabling antivirus temporarily, clean-booting, resetting the update components, and installing a catalog update all leave your personal files and installed programs untouched. Renaming the SoftwareDistribution and Catroot2 folders only clears Windows Update's own download caches — Windows rebuilds them automatically on the next update check.

Does 0x80070020 affect Windows 11 or just Windows 10?

It affects both, plus Windows Server and the same error code can appear in other Windows apps (for example, the Windows Store or app installers) whenever a program locks a file another process needs. All the steps in this guide apply to Windows 10 and Windows 11 — only the menu labels differ slightly, and both are noted where it matters.