/
/

How to Fix Windows Update or Installation Error 0x80070002 in Windows 11

How to Fix Windows Update or Installation Error 0x80070002 in Windows 11 blog banner image

Update/install error 0x80070002 is a common Windows Update failure that indicates missing or corrupted update files. The error usually occurs during cumulative updates, feature upgrades, or patch deployment.

It’s a must-fix issue to ensure timely installation of security and feature updates. Resolving the issue also helps avoid user disruption caused by repeated failed update attempts. This article will guide you through the best methods to fix install error 0x80070002.

Different ways to fix Windows 11 update or installation error 0x80070002

You can try different methods to fix Windows 11 update/install error 0x80070002. Most of these methods restore or repair update components to ensure the system is configured correctly so Windows downloads and installs updates properly. They’re also relatively simple to follow and perform.

Method 1: Run the Windows Update troubleshooter

This method uses the Windows Update troubleshooter that checks for update service failures, resets corrupted components, and fixes permissions/registry issues.

Running the troubleshooter automates fixes for common 0x80070002 causes and is generally a good first step to identify and resolve non-critical update issues.

  1. Open Settings System Troubleshoot Other troubleshooters.
  2. Find Windows Update and click Run.
  3. Follow the on-screen instructions. If the troubleshooter finds an issue, it should recommend clicking Next for the next step or Cancel if you want to stop the troubleshooting.
  4. Retry the update installation.

Method 2: Reset Windows Update components

Resetting Windows Update components stops all update-related services and restarts them. Stopping and restarting the components may fix corruption or stuck downloads by forcing a fresh update session.

  1. Search Command Prompt, right-click on it, and click Run as administrator.
  2. Copy and paste the following commands into the command prompt:

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

Method 3: Check the date and time settings

Wrong system time can invalidate cryptographic checks, leading to error 0x80070002. Checking and fixing the clock could resolve the issue:

  1. Open Settings Time & languageDate & time.
  2. Toggle on Set time zone automatically and Set time automatically if available.
  3. Click the Sync now button under Additional settings.

Method 4: Run DISM and SFC to repair system files

Running DISM (Deployment Image Servicing and Management) and SFC (System File Checker) fixes Windows component issues that interfere with updates.

This method is helpful because system corruption may cause error 0x80070002. DISM repairs the Windows image from Windows Update or a local source, while SFC scans and restores corrupted files:

  1. Search Command Prompt, right-click on it, and select Run as administrator.
  2. Copy and paste the following commands into the command prompt:
    • DISM /Online /Cleanup-Image /RestoreHealth
    • sfc /scannow

Method 5: Download and install the update

You can also manually download and install the update to bypass Windows Update. This method is ideal if the automatic update pipeline is unresponsive, but the system can install updates manually.

  1. Open Settings → Windows Update → Update history to look for the failed update’s KB number.
  2. Go to the Microsoft Update Catalog and search for the KB number.
  3. Download and install the update.

Method 6: Check registry configuration

You can check the registry configuration to fix persistent update retry failures caused by incorrect registry logic.

This method reviews specific update-related registry keys that control retry limits while resetting/removing keys if values like FlightSettingsMaxAttemptCount or MaxFailures are high. Note that this is an advanced method, so it’s ideal to try the other fixes first.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings
  3. Look for the following keys if available:
    • FlightSettingsMaxAttemptCount (Max number of times Windows will attempt to install an update)
    • FlightSettingsMaxFailures (Max number of times an update fails before Windows stops retrying)
  4. Change the value of one or both keys if they have values over 15. A good baseline is two for max failure and three for attempt counts, but there typically isn’t a standard value for these keys.
  5. Try updating again.
  6. Restart your computer if needed.

You can back up the keys by clicking the registry key you want to back up. Tap the File menu, press Export, and then select the location you want to save the backup.

After creating the backup, you can delete the original keys by right-clicking them and pressing Delete.

What causes Windows 11 update error 0x80070002?

Some common causes of Windows 11 update error 0x80070002 include corrupted files, incorrect date and time, Windows update service failures, and registry misconfiguration.

Corrupted or incomplete update files in the SoftwareDistribution folder

The SoftwareDistribution folder stores temporary update files. Updates could download incorrectly if the folder is corrupted, leading to installation failure.

Incorrect date and time

As mentioned, Windows uses cryptographic checks to validate updates. A system with incorrect date and time may fail the checks, invalidating the updates.

System file corruption

If the system files used by Windows Update are corrupted, the update processes may not run properly, resulting in errors like 0x80070002.

Windows update service failure

Services like wuauserv (automatically downloads and installs Windows updates) and cryptSvc (responsible for cryptographic checks) are essential for Windows updates. If these services stop or malfunction, the updates may not be applied, resulting in the error.

Registry misconfiguration

The registry controls Windows Update’s behavior, including retry logic and cache states. In short, a misconfigured registry may prevent update detection.

Finding the fix/solution is easier if you can identify what’s causing error 0x80070002. Unfortunately, the only way to verify is to try each method and note what caused the error for future reference. This way, you can easily identify the cause and the proper steps to take if you run into error 0x80070002 again.

Cause Fix
Corrupted or incomplete update files in the SoftwareDistribution folder Method 2
Incorrect date and time Method 3
System file corruption Method 4
Windows update service failure Method 2
Registry misconfiguration Method 6

Helpful information and tools to fix Windows update error 0x80070002

Here are some relevant things to keep in mind regarding error 0x80070002:

Items Relevance to error 0x80070002
Third-party security software These can block/interfere with update download/installation.
Storage space Not enough disk space may cause failed updates. Try to keep a minimum of 10GB.
CBS and Update Logs For advanced diagnosis, you can look for CBS (C:\Windows\Logs\CBS\) and update logs (C:\WindowsUpdate.log).
SetupDiag SetupDiag is a tool that analyzes update failures, which could help troubleshoot the issue.

Get timely security updates by fixing error 0x80070002

Install error 0x80070002 is a common Windows Update failure you can easily fix by restoring/repairing update components to ensure Windows properly downloads and installs updates.

Some methods to try include running the Windows update troubleshooter, resetting Windows update components, and fixing the date/time. You must fix the error code immediately to ensure security and feature updates are installed on time.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).