Windows & BSOD · medium

How to fix Windows Update Error 0x80070020

Error code: WU-0x80070020

What this error means

A Windows update fails with 0x80070020. Microsoft's name for the code is ERROR_SHARING_VIOLATION: the process cannot access a file because another process is using it. For Windows Update, Microsoft says this is caused by non-Microsoft filter drivers, such as antivirus, which lock files while the update is trying to replace them. The fix is to find and stop the program holding the file, starting with a clean boot.

Updated

Applies to
Windows 11 and Windows 10
Difficulty
Beginner to intermediate
Before changes
Low; undo clean boot settings afterwards

Reviewed by Matyáš Rada · Documentation checked: 2026-10-31 · Checked against Microsoft's common Windows Update errors and clean boot documentation; not tested on every configuration.

Before you begin

Note the KB number of the failing update in Settings > Windows Update > Update history. If Windows cannot start, see the startup guide.

Work through these checks

0 of 7 complete
01Restart and try again

A file locked by a running program or a pending restart is released by a restart.

  1. Restart the PC with Restart (not Shut down).
  2. Before checking for updates, close other programs.
What to expect

The update installs.

If it does not help

If it fails again with 0x80070020, continue with step 2.

Browse related errors
02Pause or remove third-party security software

Microsoft says this error is caused by non-Microsoft filter drivers, such as antivirus.

  1. Temporarily turn off real-time protection in your third-party antivirus, or uninstall it in Settings > Apps > Installed apps.
  2. Also pause backup, cloud sync and disk encryption tools.
  3. Try the update again, then turn protection back on.

Microsoft Defender turns on automatically when another antivirus is removed; keep it on.

What to expect

The update installs while the program is paused or removed.

If it does not help

If uninstalling helped, install the latest version of the program afterwards.

Browse related errors
03Update with a clean boot

Microsoft's mitigation starts with a clean restart, which starts Windows without non-Microsoft services and startup programs.

  1. Press Win + R, type msconfig, open the Services tab, tick Hide all Microsoft services and click Disable all.
  2. Open Task Manager > Startup apps and disable each startup item.
  3. Restart, install the update, then undo both changes (Enable all in msconfig, re-enable startup apps) and restart again.

Remember to undo the clean boot settings, or some programs will not start.

What to expect

The update installs in the clean boot state.

If it does not help

To find the exact program, re-enable services in halves and test again.

Browse related errors
04Run the Windows Update troubleshooter

The troubleshooter resets update components that may be stuck.

  1. On Windows 11, open Settings > System > Troubleshoot > Other troubleshooters and select Run next to Windows Update.
  2. On Windows 10, use Settings > Update & Security > Troubleshoot > Additional troubleshooters.
What to expect

The troubleshooter fixes the problem it finds.

If it does not help

Restart and try the update again.

Browse related errors
05Clear the Windows Update cache

A partly downloaded update can keep failing on the same locked file.

  1. Open Command Prompt as administrator and run net stop wuauserv and net stop bits.
  2. Run ren %systemroot%\SoftwareDistribution\Download Download.bak.
  3. Run net start bits and net start wuauserv, then check for updates.

Use Command Prompt, not PowerShell, for the ren command with %systemroot%.

What to expect

The update downloads again and installs.

If it does not help

If it still fails, find the locking program in step 6.

Browse related errors
06Find the locking program with Process Monitor

Microsoft's advanced mitigation is to find the file named in the CBS log and see which process blocks it.

  1. Open C:\Windows\Logs\CBS\CBS.log in Notepad and search for 0x80070020 to find the file name involved.
  2. Download Process Monitor from Microsoft Sysinternals, start it, and retry the update.
  3. Filter Process Monitor by that file path and look for the non-Microsoft process accessing it; stop or uninstall that program.

This step is for advanced users; Process Monitor collects a lot of data quickly.

What to expect

You find the program that locks the file.

If it does not help

Contact the program's maker for an update that does not block Windows updates.

Browse related errors
07Install the update manually

A manual installation can succeed when the automatic one is interrupted.

  1. Download the update by its KB number from the Microsoft Update Catalog (catalog.update.microsoft.com).
  2. Run the .msu file in a clean boot state (step 3).

Download updates only from Microsoft.

What to expect

The update installs.

If it does not help

If even this fails, see the Windows Update errors overview on this site for repair options.

Browse related errors

Possible causes

  • Third-party antivirus or security software scanning or locking update files
  • Backup, encryption, sync or disk tools with filter drivers
  • Other programs running during the update
  • A pending restart from an earlier update

Sources & further reading