Can't solve windows update error (0x80070002)

Cturtleh64 1 Reputation point
2020-12-06T16:55:16.16+00:00

I have had this issue with this error for over 4 months now with now solvable solution so far. I have tried everything from using the command prompt and scanning corrupt files all the way restarting the windows update service. My computer is really starting to slow for not being updated for that long. Any idea how I can fix this error. I've also run the troubleshoo45396-capture.pngter and it said there was no issue with windows. Same with the command prompt. It reported no issues when clearly there were.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,535 questions
{count} votes

3 answers

Sort by: Most helpful
  1. S.Sengupta 14,801 Reputation points MVP
    2020-12-07T02:05:39.237+00:00

    If you have already tried Windows Update troubleshooter and failed then try the following:

    Click "This PC" or "My computer"
    Navigate to "C:\Windows" folder.
    Search for and delete the folder named "SoftwareDistribution". You may also choose to rename the folder as “SoftwareDistributionOld” in case you do not wish to delete it.
    Restart your computer


  2. Jenny Feng 14,146 Reputation points
    2020-12-07T06:54:34.873+00:00

    @Cturtleh64
    Hi,
    The fastest way to get the upgrade is through Media creation tool or ISO file.
    Please download Media Creation Tool from the link below and select Upgrade this PC at the first screen:
    https://www.microsoft.com/en-us/software-download/windows10

    This will save your files and apps while bringing you up to the latest version by the most stable method. It will also bring all of your Updates current and solve most problems since it reinstalls Windows.

    Hope above information can help you.

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. MotoX80 31,556 Reputation points
    2020-12-07T14:45:16.3+00:00

    I don't know if this will help you or not, but I built a "IsWindowsHealthy.bat" file to analyze my pc when I run into problems. Run it from an admin command prompt and see if detects any errors with your component store.

    You can also run the Powershell command "Get-WindowsUpdateLog" to detailed information about what WindowsUpdate is doing.

    cls
    @echo.-------------------------------------------
    @echo.    Run check disk 
    @echo.-------------------------------------------
    chkdsk c:
    @set rc=%errorlevel%
    @echo.RC=%rc%
    @if not "%rc%"=="0" goto exit
    @echo.
    @echo.-------------------------------------------
    @echo.     Dism CheckHealth  
    @echo.-------------------------------------------
    Dism.exe /Online /Cleanup-Image /CheckHealth
    @set rc=%errorlevel%
    @echo.RC=%rc%
    @if not "%rc%"=="0" goto exit
    @echo.
    @echo.-------------------------------------------
    @echo.    Dism ScanHealth
    @echo.-------------------------------------------
    Dism.exe /Online /Cleanup-Image /ScanHealth 
    @set rc=%errorlevel%
    @echo.RC=%rc%
    @if not "%rc%"=="0" goto exit
    @echo.
    @echo.-------------------------------------------
    @echo.    Dism AnalyzeComponentstore
    @echo.-------------------------------------------
    Dism.exe /online /cleanup-image /AnalyzeComponentstore
    @set rc=%errorlevel%
    @echo.RC=%rc%
    @if not "%rc%"=="0" goto exit
    REM My PC hasn't been messed up to the point where I need to execute a Dism RestoreHealth 
    REM Leaving this as a reminder that we might need to add it in somewhere.  
    REM Dism.exe /Online /Cleanup-Image /restoreHealth
    REM @echo. RC=%errorlevel%
    @echo.
    @echo.
    @echo. If Component Store Cleanup Recommended : Yes
    @echo. Run Dism.exe /online /Cleanup-Image /StartComponentCleanup
    @echo.
    @echo.
    @echo.-------------------------------------------
    @echo.     System File Checker 
    @echo.-------------------------------------------
    sfc.exe /scannow
    @set rc=%errorlevel%
    @echo.RC=%rc%
    @if not "%rc%"=="0" goto exit
    @echo.
    @echo.-------------------------------------------
    @echo.   WindowsUpdate Troubleshooting
    @echo.-------------------------------------------
    powershell.exe "Get-TroubleshootingPack -path C:\Windows\diagnostics\system\WindowsUpdate | Invoke-TroubleshootingPack" 
    @set rc=%errorlevel%
    @echo.RC=%rc%
    :exit