Technician troubleshooting Windows Update error on laptop computer screen
0x80070020Windows UpdateWindows

Fix Windows Update Error 0x80070020 – Windows 10, Windows 11 2026

Windows Update error 0x80070020 indicates file access conflicts during update installation. This comprehensive guide provides proven solutions to resolve the 'file in use' error and restore normal update functionality.

Emanuel DE ALMEIDAEmanuel DE ALMEIDA
10 Mar 202612 min read0 views
Error Code0x80070020
ProductWindows Update
KB ArticleKB5035857
Solutions5 methods
Sources2 official
Affected SystemsWindows 10, Windows 11
Quick Fix

The fastest solution is to restart your computer and immediately run Windows Update before other applications load. This clears file locks that prevent update installation. If the error persists, run the Windows Update Troubleshooter from SettingsSystemTroubleshootOther troubleshooters.

Symptoms

  • Windows Update fails with error code 0x80070020
  • Update installation stops at various percentages (typically 30-60%)
  • System displays 'The process cannot access the file because it is being used by another process'
  • Windows Update shows 'Installation failed' status
  • Automatic updates fail repeatedly with the same error
  • Manual update attempts through Settings fail consistently

Possible Causes

  • Active applications or services locking critical system files during update
  • Antivirus software interfering with Windows Update processes
  • Corrupted Windows Update components or cache files
  • Third-party software conflicts with system file access
  • Insufficient system permissions for Windows Update service
  • Background processes preventing file replacement during updates
1

Restart and Run Clean Boot Update

This method eliminates software conflicts by starting Windows with minimal services.

  1. Press Windows + R, type msconfig, and press Enter
  2. In System Configuration, click the Services tab
  3. Check Hide all Microsoft services
  4. Click Disable all to disable third-party services
  5. Go to the Startup tab and click Open Task Manager
  6. In Task Manager, disable all startup programs by right-clicking each and selecting Disable
  7. Close Task Manager and click OK in System Configuration
  8. Restart your computer when prompted
  9. After restart, immediately open SettingsWindows Update
  10. Click Check for updates and allow the installation to complete
Pro tip: Don't open any other applications until the update completes to prevent file conflicts.

Verification: Run winver from Run dialog to confirm the new build number matches the installed update.

2

Reset Windows Update Components

This method rebuilds corrupted Windows Update components that may be causing file access issues.

  1. Press Windows + X and select Windows PowerShell (Admin)
  2. Stop Windows Update services by running these commands:
Stop-Service -Name wuauserv -Force
Stop-Service -Name cryptSvc -Force
Stop-Service -Name bits -Force
Stop-Service -Name msiserver -Force
  1. Clear the Windows Update cache:
Remove-Item -Path "C:\Windows\SoftwareDistribution\*" -Recurse -Force
Remove-Item -Path "C:\Windows\System32\catroot2\*" -Recurse -Force
  1. Re-register Windows Update DLLs:
regsvr32 /s atl.dll
regsvr32 /s urlmon.dll
regsvr32 /s mshtml.dll
regsvr32 /s shdocvw.dll
regsvr32 /s browseui.dll
regsvr32 /s jscript.dll
regsvr32 /s vbscript.dll
regsvr32 /s scrrun.dll
regsvr32 /s msxml.dll
regsvr32 /s msxml3.dll
regsvr32 /s msxml6.dll
regsvr32 /s actxprxy.dll
regsvr32 /s softpub.dll
regsvr32 /s wintrust.dll
regsvr32 /s dssenh.dll
regsvr32 /s rsaenh.dll
regsvr32 /s gpkcsp.dll
regsvr32 /s sccbase.dll
regsvr32 /s slbcsp.dll
regsvr32 /s cryptdlg.dll
  1. Restart the Windows Update services:
Start-Service -Name wuauserv
Start-Service -Name cryptSvc
Start-Service -Name bits
Start-Service -Name msiserver
  1. Restart your computer and attempt the update again
Warning: This process will clear your update history and may require re-downloading previously installed updates.

Verification: Check Windows Update service status with Get-Service wuauserv - it should show "Running".

3

Run System File Checker and DISM

Corrupted system files can cause access conflicts during updates. This method repairs the Windows image and system files.

  1. Open Command Prompt as Administrator
  2. Run DISM to repair the Windows image:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
  1. After DISM completes, run System File Checker:
sfc /scannow
  1. Wait for both scans to complete (this may take 30-60 minutes)
  2. Restart your computer
  3. Attempt the Windows Update installation again
Pro tip: If DISM fails to download repair files, use an offline Windows installation media as the source with the /Source parameter.

Verification: Check the CBS.log file at C:\Windows\Logs\CBS\CBS.log for "Windows Resource Protection found corrupt files and successfully repaired them" message.

4

Disable Antivirus and Third-Party Security Software

Security software often locks system files during real-time scanning, causing update conflicts.

  1. Temporarily disable Windows Defender Real-time Protection:
  2. Open SettingsPrivacy & SecurityWindows Security
  3. Click Virus & threat protection
  4. Under Virus & threat protection settings, click Manage settings
  5. Turn off Real-time protection temporarily
  6. If using third-party antivirus, disable it through its system tray icon or settings
  7. Disable Windows Defender through Group Policy (for advanced users):
gpedit.msc
  1. Navigate to Computer ConfigurationAdministrative TemplatesWindows ComponentsMicrosoft Defender Antivirus
  2. Double-click Turn off Microsoft Defender Antivirus
  3. Select Enabled and click OK
  4. Run gpupdate /force to apply the policy
  5. Restart your computer and attempt the update
  6. After successful update, re-enable all security software
Warning: Only disable antivirus temporarily during update installation. Re-enable immediately after completion to maintain system security.

Verification: Check Windows Security status in Settings to confirm protection is disabled, then verify update installation succeeds.

5

Manual Update Installation via Windows Update Catalog

When automatic updates fail, manually downloading and installing updates bypasses many file access issues.

  1. Identify the specific update causing the error:
  2. Open SettingsWindows UpdateUpdate history
  3. Note the KB number of the failed update
  4. Visit the Microsoft Update Catalog website
  5. Search for the KB number (e.g., KB5035857)
  6. Download the appropriate update for your system architecture (x64 for 64-bit systems)
  7. Before installation, stop Windows Update service:
Stop-Service -Name wuauserv -Force
  1. Navigate to the downloaded .msu file location
  2. Right-click the file and select Run as administrator
  3. Follow the installation wizard prompts
  4. If installation fails, extract and install manually:
expand -F:* "C:\path\to\update.msu" "C:\temp\update"
DISM /Online /Add-Package /PackagePath:"C:\temp\update\update.cab"
  1. Restart your computer after installation
  2. Restart Windows Update service:
Start-Service -Name wuauserv
Pro tip: Create a system restore point before manual update installation to enable easy rollback if issues occur.

Verification: Check SettingsWindows UpdateUpdate history to confirm the update appears as "Successfully installed".

Verification

After applying any of the above methods, verify the fix by following these steps:

  1. Open SettingsWindows Update
  2. Click Check for updates
  3. Confirm updates download and install without error 0x80070020
  4. Run the following PowerShell command to check Windows Update service status:
Get-Service wuauserv | Select-Object Name, Status, StartType
  1. Verify the service shows "Running" status
  2. Check Windows Update history for successful installations
  3. Run winver to confirm your system shows the latest build number

Still Having Issues?

If the above methods didn't resolve error 0x80070020, try these advanced solutions:

Advanced Registry Fix

Modify registry permissions for Windows Update components:

  1. Press Windows + R, type regedit, and press Enter
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate
  3. Right-click the WindowsUpdate key and select Permissions
  4. Click AdvancedChange Owner
  5. Set owner to Administrators and check Replace owner on subcontainers and objects
  6. Grant Full Control to SYSTEM and Administrators

Windows Update Medic Service Reset

sc config WaaSMedicSvc start= disabled
sc stop WaaSMedicSvc
sc config WaaSMedicSvc start= demand
sc start WaaSMedicSvc

In-Place Upgrade

If all methods fail, perform an in-place Windows upgrade using the Media Creation Tool to repair system components while preserving data and applications.

Frequently Asked Questions

What does Windows Update error 0x80070020 mean exactly?
Error 0x80070020 translates to "The process cannot access the file because it is being used by another process." This occurs when Windows Update attempts to replace or modify system files that are currently locked by running applications, services, or security software. The error prevents the update installation from completing successfully.
Why does error 0x80070020 happen more frequently on Windows 11?
Windows 11 has enhanced security features and more background processes compared to Windows 10, increasing the likelihood of file access conflicts. The new Windows Security app, Microsoft Defender improvements, and additional system services can lock files during update installation. Additionally, Windows 11's stricter file permissions and UAC enhancements contribute to this error occurring more frequently.
Can I prevent error 0x80070020 from happening again?
Yes, you can minimize future occurrences by scheduling updates during low-activity periods, temporarily disabling non-essential startup programs, keeping antivirus software updated with Windows Update compatibility, and regularly running DISM and SFC scans to maintain system file integrity. Setting Windows Update to install during maintenance hours also reduces conflicts with active applications.
Is it safe to disable antivirus software to fix this error?
Temporarily disabling antivirus software is safe for brief periods during update installation, but you must re-enable protection immediately afterward. Disconnect from the internet if possible during this process, avoid browsing or downloading files, and ensure you're only installing legitimate Windows updates. Never leave your system unprotected for extended periods.
What should I do if none of the methods work?
If all standard methods fail, consider performing an in-place Windows upgrade using the Media Creation Tool, which repairs system components while preserving your data and applications. Alternatively, contact Microsoft Support for advanced troubleshooting, or as a last resort, perform a clean Windows installation after backing up your data. Enterprise users should consult their IT department for additional deployment tools and solutions.

Which method worked?

Vote to help others

Official Resources

About the Author

Emanuel DE ALMEIDA

Emanuel DE ALMEIDA

Senior IT Journalist & Cloud Architect

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...