Fix Windows Update Error 0x80070020
Resolve Windows Update error 0x80070020 by identifying file-lock conflicts, testing a clean boot, and repairing Windows servicing components safely.
What this problem means
Error 0x80070020 means another process is using a file that Windows Update needs. Security tools, backup agents, installers, and a pending restart are common sources of the lock.
Do not treat the wording or code as a complete diagnosis. Note what you were doing, when the problem began, and whether it affects one device, one user profile, or all of Windows.
Confirm the scope and likely cause
| Check | What it tells you |
|---|---|
| Update history | Identifies the package and phase that encountered the sharing violation. |
| Reliability Monitor | Shows installers, security software, or crashes near the failure time. |
| Clean boot comparison | Tests whether a non-Microsoft service is holding update files open. |
| Free space and restart | Rules out incomplete servicing and a stale file handle. |
Safe repair procedure
1. Restart Windows and retry the same update once
Complete this step, restart only when requested, and test the original symptom before continuing. Record any new message because it may identify a narrower cause.
2. Pause active backups, installers, and nonessential synchronization jobs
Complete this step, restart only when requested, and test the original symptom before continuing. Record any new message because it may identify a narrower cause.
3. Perform a documented clean boot and retry Windows Update
Complete this step, restart only when requested, and test the original symptom before continuing. Record any new message because it may identify a narrower cause.
4. Run DISM RestoreHealth followed by SFC
Complete this step, restart only when requested, and test the original symptom before continuing. Record any new message because it may identify a narrower cause.
5. Restore normal startup and identify the conflicting program before updating it
Complete this step, restart only when requested, and test the original symptom before continuing. Record any new message because it may identify a narrower cause.
Repair Windows servicing files
When several Windows components fail or servicing damage is confirmed, open Terminal as administrator and run:
These commands repair the Windows component store and protected files. They do not repair failed hardware or guarantee a third-party application will work.
Prevent the problem from returning
- Install supported Windows and manufacturer updates.
- Keep a current, tested backup of important files.
- Avoid abrupt shutdowns during updates and disk operations.
- Change one variable at a time and retain the exact error details.
- Investigate repeated corruption as a possible storage, memory, power, or thermal problem.
Frequently asked questions
Is this safe to repair myself?
Begin with reversible checks. Stop before partitioning, firmware changes, reset, or reinstall steps unless you have a verified backup and understand the confirmation screen.
Should I download a repair file from a third-party site?
No. Use Windows Update, Microsoft documentation, or the original PC, device, or application publisher.
What if the problem returns?
Preserve the exact message and logs. Repeated failures after clean software repair require storage, memory, power, firmware, or device testing.
Repair Guide ðŸ›