Full Fix: Error x80070002 on Windows 10, 8.1, 7

By: Ujjwal Kumar
7 minute read

When you are thrilled about upgrading your Windows version for an all-new OS experiences and promising features offered by the latest versions, you might come across some bugs and glitches that will stop you in the process. In this post, though, we will specifically talk about the error code x80070002 that sometimes stops people from moving forward with their updates on Windows.

Let’s talk about this error code first and see why it happens. The cause of the error – the error x80070002 or x80070003 occurs due to corrupt or missing files on Windows after an update.

Error x80070002, how to fix it on Windows 10?

Error x80070002 can be problematic and prevent you from installing the latest updates. Speaking of this error, here are some similar issues reported by users:

  • Error 0x80070002 Windows 10, Windows 7 – This error can appear on almost any version of Windows, and if you encounter it, you should be able to fix the problem using one of our solutions.
  • Windows Update service not running – This message is frequently related to this error, but you can fix this problem simply by enabling the Windows Update service on your own.
  • Installation failed with error 0x80070002 – Sometimes you might get this error message on your screen. If that happens, reset Windows Update components and check if that helps.

Solution 1 – Reset Windows Update components

According to users, error x80070002 can appear while trying to install updates. This issue can occur due to problems with Windows Update, and in order to fix the issue, it’s advised to reset Windows Update components.

You can do this manually, but this can be a tedious task, therefore it’s better to use the command line for such a task. To do that, follow these steps:

  1. Press Windows Key + X to open Win + X menu. Choose Command Prompt (Admin) or Powershell (Admin) from the list.
    Error 0x80070002 Windows 7
  2. When Command Prompt starts, run the following commands:
  • net stop wuauserv
  • net stop cryptSvc
  • net stop bits
  • net stop msiserver
  • Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
  • Ren C:\Windows\System32\catroot2 Catroot2.old
  • net start wuauserv
  • net start cryptSvc
  • net start bits
  • net start msiserver

After running these commands, check if the problem is resolved.


Solution 2 – Rename CBS.Log file

Sometimes error x80070002 can appear due to CBS.Log file on your PC. The file can get corrupted, and the best way to deal with it is to rename it. This is quite simple to do, and you can do it by following these steps:

  1. Press Windows Key + R and enter %systemroot%\Logs\CBS. Now press Enter or click OK.
    Windows Update service not running
  2. Locate CBS.Log file and rename it to anything else.
    Installation failed with error 0x80070002

After renaming the file, check if the problem is resolved.

Several users reported that they are unable to rename this file. If that’s the case, first you’ll need to stop a couple of services manually. To do that, just follow these steps:

  1. Press Windows Key + R and enter services.msc. Press Enter or click OK.
    Installation failed with error 0x80070002
  2. When Services window opens, locate Windows Modules Installer service and double-click it.
    Error 0x80070002 Windows 7
  3. Set the Startup type to Manual and click Apply and OK to save changes.
    Error 0x80070002 Windows 10
  4. After your PC restarts, you should be able to rename CBS.Log file.
  5. Go back to Services window and set the Startup Type of Windows Modules Installer to Automatic and restart your PC.

Solution 3 – Download the update manually

Error x80070002 usually occurs while trying to download Windows 10 updates. This can happen due to various issues, and if you can’t fix the problem, you can always download the update manually.

Before you do that, you need to find the number of your update. You can do that from the Windows Update section. The update code will have KB at the beginning followed by the array of numbers.

Once you find the update number, you need to do the following:

  1. Go to the Microsoft Update Catalog website.
    Error 0x80070002 Windows 10
  2. In the search box enter the code of your update.
  3. List of matching updates will appear. Select the update that matches your architecture and click the Download button next to it.
  4. After you download the update, run the setup file to install it on your PC.

Keep in mind that this solution will install the missing update, but it might not fix the core problem, so you’ll have to do that manually.


Solution 4 – Check your antivirus

Installation failed with error 0x80070002

Another common cause for error x80070002 can be your antivirus software. Sometimes the antivirus can interfere with your system, and that can cause this and other errors to appear.

To fix the issue, it’s advised that you disable certain antivirus features and check if that helps. If that doesn’t work, you might have to disable your antivirus completely.

In case that doesn’t work, your next step would be to remove your antivirus. If removing the antivirus solves the problem, you should consider switching to a different antivirus solution. There are many great antivirus applications on the market, and if you want an antivirus that won’t interfere with your system while providing maximum protection, you should consider Bitdefender.


Solution 5 – Make sure that Windows Update service is running

If you keep getting x80070002 error, you should check if Windows Update service is running properly on your PC. To fix this problem, you need to make a couple of changes in the Services window. To do that, follow these steps:

  1. Open the Services window.
  2. Locate Windows Update service on the list, right-click it and choose Start from the menu.
    Windows Update service not running

After starting this service, check if the problem is resolved.


Solution 6 – Make sure that your time and date are correct

According to users, error x80070002 can occur due to problems with your date and time. If your date or time isn’t correct, you can encounter this error. However, there’s a way to fix this problem:

  1. Right-click the clock in the bottom right corner and select Adjust date/time from the menu.
    Installation failed with error 0x80070002
  2. When Settings app opens, turn off Set time automatically option. After a couple of moments, turn this feature back on again.
    Error 0x80070002 Windows 7

Alternatively, you can also click the Change button to adjust date and time manually. Once your date and time are correctly configured, the issue should be resolved.


Solution 7 – Run Windows Update troubleshooter

Error x80070002 usually occurs while trying to download Windows Updates, and in order to fix it, you need to run Windows Update troubleshooter. Sometimes your system might not be properly configured, and that can cause this issue to occur. However, you can easily fix that by running the troubleshooter:

  1. Press Windows Key + I to open the Settings app.
  2. Navigate to the Update & Security section.
    Windows Update service not running
  3. In the left pane select Troubleshoot. Choose Windows Update from the right pane and click Run the troubleshooter button.
    Windows Update service not running
  4. Follow the instructions on the screen to complete the troubleshooter.

Once the troubleshooter is finished, check if the problem is still there.


Solution 8 – Modify your registry

Sometimes error x80070002 can occur due to issues in your registry, but you can fix that by following these steps:

  1. Press Windows Key + R and enter regedit. Press Enter or click OK.
    Installation failed with error 0x80070002
  2. When Registry Editor opens, navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade in the left pane.
  3. In the right pane, right-click the empty space and choose New > DWORD (32-bit) Value.
    Error 0x80070002 Windows 10
  4. Enter AllowOSUpgrade as the name of the new DWORD and double-click it to open its properties.
    Windows Update service not running
  5. Set Value data to 1 and click OK to save changes.

After making these changes, check if the problem is resolved.


Solution 9 – Perform an in-place upgrade

According to users, error x80070002 can occur because your Windows installation is damaged. This can be a big problem, however, you don’t have to reinstall windows in order to fix it. To fix this problem, you just have to perform an in-place upgrade.

In case you’re not familiar, an in-place upgrade will reinstall Windows 10 and force it to upgrade to the latest version while keeping all your files and applications intact. To perform an in-place upgrade, you just need to do the following:

  1. Download and run Media Creation Tool.
  2. When Media Creation Tool opens, select Upgrade this PC now option.
  3. Wait while the setup prepares the necessary files.
  4. Select Download and install updates (recommended) and click Next.
  5. Wait for setup to download the necessary files.
  6. Follow the instructions on the screen. On Ready to install screen click Change what to keep.
  7. Be sure to select Keep personal files and apps and click Next.
  8. Follow the instructions on the screen to complete the setup.

Once the setup is finished, you’ll have the latest version of Windows installed and all your files and applications will be preserved. This is a bit drastic solution, so use it only if other solutions can’t fix your problem.

These are some solutions that can help you with this error, so be sure to try them all. If you still have any queries then shoot them in the comments below.


Editor’s Note: This post was originally published in August 2016 and has been since completely revamped and updated for freshness, accuracy, and comprehensiveness.


READ ALSO:

Next up

Windows 7 KB4457139 makes it easier to upgrade to Windows 10

By: Madeleine Dean
2 minute read

Microsoft released a new Windows 7 update to the general public. Update KB4457139 is actually a preview of the upcoming monthly rollup update and allows users […]

Continue Reading

KB4457136 gets your PC ready for the Windows 10 October Update

By: Madeleine Dean
2 minute read

The Windows 10 October 2018 Update is just around the corner. Microsoft is expected to release this new OS version in October, although the exact […]

Continue Reading

2018 List: Best free Android emulators for Windows 10/8.1/7

By: Ivan Jenic
7 minute read

What Android emulator is the best for my Windows PC? Bluestacks MeMu Nox Remix OS Player Droid4X AMIDuOS Windroy Genymotion Xamarin Android Player Andy We’re […]

Continue Reading

Discussions