Windows Update Fails with 0x80070005 after upgrading Win7 to Win10?


  1. Posts : 26
    Windows 10 Pro
       #1

    Windows Update Fails with 0x80070005 after upgrading Win7 to Win10?


    I have an older machine that I had kept on Windows 7 and I have just done an upgrade to Windows 10 1909 using the media creation tool. It seems to work perfectly fine, but Windows Update cannot run and always throws Error Code 0x80070005. I've read up on this and some suggestions are to use subinacl.exe to fix registry permissions on the trusted installer or other registry entries.

    I've tried to do that, but I'm running into a RegSetKeySecurity System Error 5 Access is Denied when trying to execute the following:

    Set OSBIT=32IF exist "%ProgramFiles(x86)%" set OSBIT=64 set RUNNINGDIR=%ProgramFiles% IF %OSBIT% == 64 set RUNNINGDIR=%ProgramFiles(x86)% subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing" /grant="nt service\trustedinstaller"=f

    I've also tried sfc scannow and DISM repair with no success. Also have cleared out the Software Distribution folder and checked all the windows update services to make sure they are running/starting and that has had no effect either.

    Any suggestion on how get the above script to work, or other ideas to get the updates working, would be much appreciated.
      My Computer


  2. Posts : 42,984
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, do you have any old security software in place?

    What does the Windows Update Troubleshooter report? (Screenshot)
    To post a screenshot please use the icon above your post 'Insert Image'

    Try this:
    Windows Update Fails with 0x80070005 after upgrading Win7 to Win10?-1.png

    It has helped some people when other things haven't. Just search for the tool- observe its cautious approach, following the directions. Try just repair 16.
      My Computers


  3. Posts : 26
    Windows 10 Pro
    Thread Starter
       #3

    dalchina said:
    Hi, do you have any old security software in place?

    What does the Windows Update Troubleshooter report? (Screenshot)
    To post a screenshot please use the icon above your post 'Insert Image'

    Try this:
    Windows Update Fails with 0x80070005 after upgrading Win7 to Win10?-1.png

    It has helped some people when other things haven't. Just search for the tool- observe its cautious approach, following the directions. Try just repair 16.
    Thanks. I ran step 16 and then restarted and still got the same error. I ran the Windows Update Troubleshooter and it did give some options (which it was finding nothing wrong before using the Tweaking.com tool). However, after it applied the fixes and I rebooted I still got the same error. I ran the update troubleshooter a 2nd time and it couldn't find anything wrong.

    Windows Update Fails with 0x80070005 after upgrading Win7 to Win10?-screenshot-2020-01-14-08.42.07.png

    I've tried to uninstall the last update with no success. If I try to manually install the updates they appear to install, but then Windows Update still thinks they need to be installed and issues the same error code.

    I'm really stumped as to how to fix this. Everything seems to be working just fine after the upgrade except for Windows Updates so I really don't want to have to Reset/Reinstall and then reconfigure this entire system just because of this one issue.
      My Computer


  4. Posts : 42,984
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Again, do you have any old security software installed?

    As it's an older PC, please do these basic checks:
    a. HDTune (free) Health and Error scan tabs.
    b. From an admin command or Powershell prompt
    chkdsk c: /scan

    You can try this:
    Reset Windows Update in Windows 10
    then see if WU works.
      My Computers


  5. Posts : 26
    Windows 10 Pro
    Thread Starter
       #5

    Thanks for your help.

    I sort of misspoke on the 'older PC' comment. It's an Ivy Bridge system, but the system drive was cloned/replaced with a Western Digital SSD last year. So the architecture is a few years old, but the drive is new.

    I've already run scandisk checks and there are no errors. No errors with HD Tune either. I then tried the script you linked and rebooted and still get the same error.

    The Microsoft Store *also* has errors and can't update either.
      My Computer


  6. Posts : 42,984
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    Have you changed the location where Windows apps are installed? Or used drive compression?
    Windows Store error 0x80070005 when using a different location to C:

    https://appuals.com/fix-error-0x80070005-on-windows-10-store/


    Note the error message typically relates to permissions problems.
    You can try using the permissions repairs in Tweaking.com's tool, and if no luck, try an in-place upgrade repair install which keeps all progs and data. For that you need an iso (or bootable disk) of your current build.
      My Computers


  7. Posts : 26
    Windows 10 Pro
    Thread Starter
       #7

    Sadly I'm still stumped by this problem. I performed an in-place upgrade and it didn't resolve the problem.
      My Computer


  8. Posts : 42,984
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8

    Try using a 3rd party tool such as WUMGR or this one (Option 7)
    Enable or Disable Windows Update Automatic Updates in Windows 10

    Also I note you've not yet said whether you have 3rd party security software or firewall installed.

    Have you ever modified the Hosts file?

    Thre is an interesting answer which helped many here:
    https://answers.microsoft.com/en-us/...4-6457ac619c19

    albeit rather old, so treat with caution.

    Are routine store updates and downloads working?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:58.
Find Us




Windows 10 Forums