How to Fix Error 0x8007007e in Windows?

You can get the 0x8007007e error while upgrading to Windows 10 or performing a Windows update. This error usually prevents you from upgrading or updating your system. Sometimes the error shows up with a “Windows have encountered and unknown error” or “Failed to install the update/build. Please Try again” message as well.

There are usually two things that can cause this issue. The first one is any third party software, especially an antivirus, preventing the update or upgrade. The second is a corrupted windows file or a system file or a registry file.

The issue can be solved by checking what is causing the issue. If a third party software is the reason behind the error then disabling it during the upgrade solves this problem. But if that doesn’t solve the problem then fixing Windows files solves the problem.

First try the method 1 which will most likely solve the issue. If that doesn’t solve the problem then try method 3 to check if a software or service is causing the problem. At the end, try the method 2 which will definitely solve the issue.

Method 1: Disable 3rd party Antivirus

  1. Right click the antivirus icon in the system tray (on the right bottom corner) and select Disable.
  2. If that doesn’t work, double click the antivirus icon. Select the Disable option from the pop up.

Now try to upgrade and see if the issue is still there.

Note: Having an antivirus is important as it protects your computer from threats. Do not forget to enable your antivirus after you are finished upgrading the Windows.

To enable the antivirus, follow these steps

  1. Right click the antivirus icon in the system tray (on the right bottom corner) and select Enable.
  2. If that doesn’t work, double click the antivirus icon. Select the Enable option from the pop up.

Method 2: Manually reset Windows Update Components

In this method we will manually restart the BITS, Cryptographic, MSI Installer and the Windows Update Services and rename the SoftwareDistribution and Catroot2 folders which definitely solves the problem.

  1. Hold Windows Key and press X (release Windows Key). Click Command Prompt (Admin)
  2. Type net stop wuauserv and press Enter
  3. Type net stop cryptSvc and press Enter
  4. Type net stop bits and press Enter
  5. Type net stop msiserver and press Enter
  6. Type ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and press Enter
  7. Type ren C:\Windows\System32\catroot2 Catroot2.old and press Enter
  8. Type net start wuauserv and press Enter
  9. Type net start cryptSvc and press Enter
  10. Type net start bits and press Enter
  11. Type net start msiserver and press Enter
  12. Close the Command Prompt

Sometimes one of the services will start on its own so you don’t have to worry. Now try to upgrade the Windows again and it should work without any problems.

Method 3: Clean Boot

Performing a clean boot will help you identify if the problem is because of the interference of a third party software or a service.

  1. Hold Windows Key and press R (release Windows Key)
  2. Type msconfig and press Enter
  3. Click the Services tab
  4. Check Hide All Microsoft Services and click Disable All (if the button is not greyed out)
  5. Click Startup tab and select Disable All. If there is not disable all option then click the Open Task Manager. Now select each task and click Disable.
  6. Now restart your computer
  7. Check Don’t show this message or launch the System when the System Configuration Utility window appears.

You can also view and read detailed steps to clean boot.

NOTE: Check step 5 before posting. The step 5 wasn’t working for me so I added what I thought might work

Now check if you can download and install the update without any issue.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

22
    LI
    Lee Iehle Nov 6, 2017

    Method 2 worked perfectly
    .

    VI
    videosho Dec 11, 2017

    Method 2 line #6 ren C:WindowsSoftwareDistribution SoftwareDistribution.old and press Enter I receive message, “Access denied” what can I do to gain access?

    DK
    dk Jan 12, 2018

    Good job on this posting, Kevin. – Kevin

    BM
    Bob Matthews Feb 22, 2018

    Method 2 – steps 6 and 7
    I get the message – access denied !!

      RC
      Ray Connor Mar 7, 2018

      Are you running command prompt with administrator privileges?

        JE
        Joshua Engel Apr 3, 2018

        yeah and it either doesnt come up with anything or access denied

    SM
    Sally Underwood-Miller Mar 9, 2018

    ren doesn’t work for me

      RC
      Ray Connor Mar 11, 2018

      Are you running the command prompt as administrator?

        FE
        Fenrir Mar 23, 2018

        Yes and still nothing works. I tried to turn on all privileges on user account on the cmd and still says acces denied.

          RC
          Ray Connor Mar 26, 2018

          Press Windows + S, type “Command prompt” in the dialogue box, right-click on the application and select “Run as administrator”.

    AG
    Anthony gonzalez Aug 1, 2018

    ren C:WindowsSoftwareDistribution SoftwareDistribution.old doesn’t work

      KA
      Kamil Anwar Aug 6, 2018

      If you’re getting access is denied, make sure command prompt is running as admin.

      Reply
        AG
        Anthony gonzalez Aug 6, 2018

        Im saying everything worked except ren C:WindowsSoftwareDistribution SoftwareDistribution.old

          KA
          Kamil Anwar Aug 6, 2018

          What is the error you’re getting when you try running it – may be post a screen shot so i can analyse it?

          AG
          Anthony gonzalez Aug 7, 2018

          i dont think my computer can do that, plus, after the ren C:WindowsSoftwareDistribution SoftwareDistribution.old it says “access denied”

          RC
          Ray Connor Aug 7, 2018

          Access denied means that you are not running command prompt in elevated mode. You should be logged as an administrator and should open the command prompt in administrator mode too (windows + S, type “command prompt”, right-click on the application and select “Run as administrator”). If you still cannot rename, just cut paste the entire folder manually. Doesnt make a difference.

    AG
    Anthony gonzalez Aug 7, 2018

    i have both catroot2 and catroot2.old on my computer what does this mean

      KA
      K. Arrows Author Aug 7, 2018

      Means you have done the steps in the past, catrool2.old is just a renamed version (not used)

        AG
        Anthony gonzalez Aug 7, 2018

        is this a good thing or a bad thing

          KA
          K. Arrows Author Aug 7, 2018

          That folder has no effect, the one with .old in it. You can delete it.

    SW
    Shane Warren Author Sep 29, 2019

    Try the same method in safe mode.

    SW
    Shane Warren Author Sep 30, 2019

    Is CMD opened as an admnistrator?