Back to Home
Windows 0x80070020 Error – How to Fix
windows-errors

0x80070020

Windows 0x80070020 Error – How to Fix

27 views
Updated March 15, 2026

Quick Fix

Close all programs, restart your PC, then run the Windows Update troubleshooter. If the error persists, open an elevated Command Prompt and run DISM and SFC commands to repair system files.

What it Means

The 0x80070020 error means Windows cannot access a file or registry key because it is locked by another process. It commonly appears during Windows Update, driver installs, or when a background service holds a file.

Possible Causes

  • 1
    File or registry lock by another process
  • 2
    Background services like Windows Update or antivirus
  • 3
    Pending updates in SoftwareDistribution folder
  • 4
    Corrupted system files
  • 5
    Misconfigured permissions

How to Fix

    Step-by-Step Solutions

    1. Identify the locked file

      Open Process Explorer (procexp.exe) and use Find > Find Handle or DLL to locate the file name reported in the error. Close the application or service using it.

    2. Restart the computer

      A simple reboot clears most file locks and stops background services that might be holding the file.

    3. Run DISM repair

      DISM fixes Windows image corruption that can cause file locks.

      DISM /Online /Cleanup-Image /RestoreHealth
    4. Run SFC scan

      SFC checks and replaces corrupted system files that may be locked.

      sfc /scannow
    5. Stop Windows Update service

      Temporarily stop the service to free the SoftwareDistribution folder.

      net stop wuauserv
    6. Delete SoftwareDistribution folder

      Clear pending updates that might be locked.

      del /s /q %windir%\SoftwareDistribution\*
    7. Restart Windows Update service

      Restart the service to allow updates to resume.

      net start wuauserv
    8. Reboot the computer

      Apply all changes and ensure no locks remain.

    Commands You Can Try

    DISM /Online /Cleanup-Image /RestoreHealth
    sfc /scannow
    net stop wuauserv
    del /s /q %windir%\SoftwareDistribution\*
    net start wuauserv

    Technical Details

    Error TypeRuntime
    SeverityMedium
    Platformwindows-errors
    App VersionAll

    Still stuck?

    Pro tips

    • Use PowerShell with Start-Process -Verb RunAs to run commands with admin rights
    • Schedule the DISM and SFC scans during off‑peak hours to avoid interrupting work
    • Keep your antivirus updated and perform a full scan after fixing the error

    If the error continues after all steps, or if your system shows instability or data loss, contact Microsoft Support or a professional technician for deeper diagnostics.

    If these solutions didn't help, try searching our database for similar issues.

    Contact Support