Error 0x80070020 is Windows’ way of saying “that file is busy”: ERROR_SHARING_VIOLATION. The updater reached for a file it needed to replace, found another process holding it open, and aborted rather than risk corruption. Your system is fine — nothing half-installed — but the update can’t proceed until the file is free.
On HP laptops the prime suspects are the extras that ship with the machine: real-time antivirus, HP’s own background utilities, backup agents, and occasionally a previous installer that never exited. The repair is detective work more than surgery — find what’s holding the file, stop it, and let the update through. The sequence below moves from the quick checks to the definitive clean-boot isolation.
There’s a useful way to think about this error: Windows is protecting you. Overwriting a file that another process is actively using could corrupt that process or the file itself, so the updater declines rather than risks it. The frustration is that Windows doesn’t name the locker — it just reports the collision. Everything below is designed to answer that one unanswered question: who is holding the file?
Why this happens
- Antivirus real-time protection locking files. The most common cause — the scanner holds files the updater needs to replace.
- HP background utilities. Support Assistant, audio managers, and security components can lock shared libraries during their own tasks.
- A stuck previous installer. An msiexec process that never exited keeps its files claimed.
- Backup or sync tools. OneDrive, Dropbox, or backup agents locking user and system files mid-sync.
- Windows Search indexer. The indexer occasionally locks files the updater wants.
- Pending restart from an earlier update. Files flagged for replacement at reboot can’t be touched until it happens.
- Corrupted update state. A confused updater retrying against files it already has open.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Restart and retry — clear the transient locks
The simplest locks evaporate at reboot.
- Save your work and restart the laptop normally — don’t shut down with fast startup games, do a real restart.
- Before opening anything else, go to Settings > Windows Update and click Check for updates or Retry.
- If the update proceeds, the lock was transient — a background task that has since finished.
- If 0x80070020 returns immediately, the locker is persistent; continue below.
Fix 2: Pause third-party antivirus during the update
The number-one persistent locker gets a timeout.
- Temporarily disable real-time protection in your third-party antivirus (Windows Security steps in automatically).
- Immediately retry the failing update while protection is paused.
- Re-enable your antivirus right after the test, whatever the result.
- If the update succeeded, schedule future updates with protection paused, or add the
C:\Windows\SoftwareDistributionfolder to the antivirus exclusions.
Fix 3: End stuck installer processes
A previous install may still be squatting on the files.
- Open Task Manager (Ctrl + Shift + Esc) and go to the Details tab.
- Look for
msiexec.exe,setup.exe, orTrustedInstaller.exeprocesses that aren’t doing visible work. - Right-click a stuck one and choose End task — one clean termination, then stop.
- Restart the laptop and retry the update with the squatter gone.
Fix 4: Pause sync and backup tools
Cloud sync clients are stealthy file-lockers.
- Pause OneDrive sync (click its taskbar icon > Pause syncing) and quit Dropbox or other sync clients temporarily.
- If you run a scheduled backup tool, make sure no backup job is currently running.
- Retry the update with the sync tools quiet.
- Resume syncing afterward; consider scheduling backups outside your usual update window to avoid future collisions.
Fix 5: Perform a clean boot to identify the locker
The definitive test: strip the startup down to Microsoft only.
- Press Windows key + R, type
msconfig, and on the Services tab check Hide all Microsoft services, then Disable all. - In Task Manager’s Startup apps tab, disable every entry, then restart.
- Retry the update in this minimal state — it almost always succeeds here.
- Re-enable services in halves, rebooting and retesting, until the error returns; the last group enabled contains your locker. HP utilities you actually use can be reinstalled from the HP support site if one proves problematic.
Fix 6: Reset the update components
A confused updater can lock its own files; reset clears the state.
- In an administrator Command Prompt:
net stop wuauserv,net stop bits,net stop cryptsvc,net stop msiserver. - Rename the caches:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldandren C:\Windows\System32\catroot2 catroot2.old. - Restart the services:
net start wuauserv,net start bits,net start cryptsvc,net start msiserver. - Retry the update; the fresh component state has no stale locks.
Fix 7: Install the update manually in a quiet state
For the last stubborn package, combine manual install with minimal interference.
- Note the failing KB from Update history and download its x64
.msufrom the Microsoft Update Catalog . - Pause antivirus and sync tools as in Fixes 2 and 4.
- Run the standalone installer — its simpler flow holds fewer files open at once.
- Confirm success in Update history. Microsoft’s official Windows Update support hub documents sharing-violation scenarios for deeper reading.
Fix 8: Route HP drivers through HP’s own channel
Reduce contention permanently by separating HP driver updates from Microsoft’s queue.
- In HP Support Assistant, make sure all HP drivers are current through HP’s own channel first.
- If a specific HP driver keeps colliding in Windows Update, hide that driver update with Microsoft’s “show or hide updates” troubleshooter.
- Keep getting that driver from HP going forward — one channel per driver means no more two-way tug-of-war over the same files.
- Retry the full Windows Update check; with HP drivers out of Microsoft’s queue, the remaining updates face far less contention.
Closing
Error 0x80070020 is a file-access dispute, not system damage, and the clean-boot isolation in Fix 5 definitively names the locking program on any HP laptop. For the generic walkthrough, see the step-by-step 0x80070020 guide , and if your error is invalid data rather than a locked file, the 0x8007000D guide for HP laptops covers that distinct failure.
