Microsoft Windows HRESULT Error Code 0x80070021: How to Fix It
Easy 15-30 minutes Medium Severity
Verified June 2026
- Error Code
- 0x80070021
- Brand
- Microsoft Windows
- Product Type
- hresult
- Severity
- Medium
- DIY Difficulty
- Easy
- Estimated Fix Time
- 15-30 minutes
Ad
How to Fix Error Code 0x80070021
-
Restart Your Computer
-
Close All Programs
-
Disable Third-Party Antivirus Temporarily
Disabling antivirus may expose your system to threats. Do this only temporarily and ensure you re-enable it immediately after testing. -
Run System File Checker
-
Check Disk for Errors
Backup important data before running chkdsk to prevent data loss in rare cases. -
Perform a Clean Boot
After testing, re-enable services via msconfig to restore normal functionality. -
Reinstall the Affected Program
Backup any app data before uninstalling.
Ad
When to Call a Professional
If none of these steps work, the issue may be due to deeper system corruption or hardware failure. Consider contacting a professional technician or Microsoft Support.Frequently Asked Questions
What causes error 0x80070021 in Windows?
This error occurs when a file is locked by another process, preventing access. Common causes include antivirus scanning, file in use by another program, or system file corruption.
Can I fix 0x80070021 without restarting?
Yes, try closing all programs and disabling antivirus first. If that fails, a restart is often the simplest fix.
Is error 0x80070021 dangerous?
No, it's a file access conflict and not a sign of malware. However, persistent errors may indicate system issues.
Will a clean boot delete my files?
No, a clean boot only disables non-essential services and startup programs. Your personal files remain intact.
What if error 0x80070021 appears during Windows Update?
Try running the Windows Update Troubleshooter in Settings > Update & Security > Troubleshoot, or reset Windows Update components via command prompt.