Windows Update error 0x80070002 means Windows went looking for a file it expected to find and the file was not there. The code is the Windows error ERROR_FILE_NOT_FOUND, written in the form update errors use. The file that is missing decides the fix, so the first job is to work out where the error appears, then work through the fixes in order, testing Windows Update after each one.
The short version: for a monthly update, clear the update cache first, then repair the system files with DISM and SFC. For a big version upgrade, read the setup logs first. For a Store app, reset the Store cache. If every fix fails, an in-place repair install is the honest last resort, and it can keep your files and apps.
First, work out where the error appears
When this works: you stop guessing and start with the fix that matches your situation. Note what you were doing when the code appeared. Open Settings, then Windows Update, then Update history, and look for the failed entry and its KB number.
There are three common places for this error. A cumulative update is the small monthly security package. A feature update is the large version upgrade that moves Windows 11 from one version to another. A Store app install is not a Windows update at all, even though it can show the same code, because the Store uses the same file-not-found error when an app package is incomplete.
| Where the error appears | What is usually missing | Try first |
|---|---|---|
| Cumulative update | A downloaded update file in the cache | Clear the update cache |
| Feature update | A setup or driver file the upgrade needs | Read Setupact.log, then repair install |
| Store app install | An app package file | Reset the Store cache |

If you are not sure which branch you are in, treat it as a cumulative update, the most common case. If the update history shows a version upgrade, skip ahead to the log reading section.
Run the Windows Update troubleshooter
When this works: a service is stuck, a setting is wrong, or a download is half finished, and Windows can correct it on its own. This is the step Microsoft lists first for update problems, and it costs two minutes, so it is worth doing even though it does not fix everything.
On Windows 11, open Settings, then System, then Troubleshoot, then Other troubleshooters. Find Windows Update and select Run. On current Windows 11 versions this opens the Get Help app, which runs the same troubleshooter there. Follow the prompts and apply any fix it offers.
When it finishes, restart the PC and open Settings, then Windows Update, then Check for updates. Success is the update installing without the code, or the troubleshooter reporting a specific problem it fixed, such as a stopped service. If the same code comes back, move on. Running it again will not change the result. Microsoft Support has a full troubleshooting guide for Windows Update problems that lists the same first step.
Restart properly, then check the clock and free space
When this works: a pending restart is holding half staged update files, the clock is wrong so package signatures fail to validate, or the system drive is too full for the update to unpack. These are small causes, but they are common enough to rule out before you touch system files.
Restart from the Start menu, using Restart rather than Shut down, so the pending state clears properly. Then open Settings, then Time and language, then Date and time. Turn on Set time automatically and select Sync now. A clock that is days out, often after a flat CMOS battery or a dual boot setup, can make Windows reject update packages whose signatures it cannot validate.
Next, check free space in Settings, then System, then Storage. A cumulative update needs room to download and unpack, and a feature update needs considerably more. If the drive is nearly full, use Cleanup recommendations or Temporary files to clear space, and uninstall apps you no longer use. Do not delete the Windows folder or the WinSxS folder by hand. If your PC is generally slow as well as failing updates, our guide to speeding up Windows 11 covers the safe cleanup steps that help here too.
Clear the update cache
When this works: a download was interrupted by a power cut, a forced shutdown, or a crashed installer, and the SoftwareDistribution folder now holds partial files that the update engine trips over on every retry. This is the single most common cause of 0x80070002 on a cumulative update.
The SoftwareDistribution folder at C:\Windows\SoftwareDistribution is where Windows Update downloads and stages packages before installing them. Renaming it, rather than deleting it, lets Windows build a fresh one on the next check, and keeps the old copy as a fallback. The update services must be stopped first, or Windows will refuse to rename the folder.
- Search for cmd, right click Command Prompt, and select Run as administrator.
- Stop the update services with these commands, pressing Enter after each one: net stop wuauserv, net stop cryptSvc, net stop bits, net stop msiserver.
- Rename the cache folder with this command: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
- Restart the services with these commands: net start wuauserv, net start cryptSvc, net start bits, net start msiserver.
- Restart the PC, then open Settings, then Windows Update, then Check for updates.
Repair system files with DISM and SFC
When this works: a system file or a component store entry the update needs is corrupt or missing, so the update engine cannot find it even with a clean cache. DISM repairs the Windows image that SFC relies on, and SFC then repairs the protected system files. Run DISM first, then SFC, in that order.
Open an administrator Command Prompt, as in the previous section. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This takes several minutes and uses Windows Update as its repair source, so keep the PC connected to the internet and do not close the window while it runs. When it reports that the restore operation completed successfully, type sfc /scannow and press Enter. That scan also takes a while.
Read the result SFC gives you. “Windows Resource Protection did not find any integrity violations” means the system files are clean, and the fault lies elsewhere. “Windows Resource Protection found corrupt files and successfully repaired them” means the repair worked, so restart and try the update again. “Windows Resource Protection found corrupt files but was unable to fix some of them” means run DISM again, restart, and run SFC once more. If it still cannot repair the files, skip ahead to the repair install section.
Read the logs to find the missing file
When this works: the cache is clean and the system files pass their checks, yet the same update keeps failing. The logs turn a vague code into a named file, and that name tells you which fix applies. This is the step the generic guides skip. Microsoft documents both logs used here.

What to look for in WindowsUpdate.log
Windows no longer writes a plain WindowsUpdate.log file directly. It writes trace files, and the Get-WindowsUpdateLog command merges them into a readable log. Open PowerShell as administrator, type Get-WindowsUpdateLog, and press Enter. By default the readable file is written to your Desktop as WindowsUpdate.log. Open it in Notepad and search for 0x80070002, then look at the lines around each match for the update name, the KB number, and the stage where it failed, such as downloading, installing, or restarting.
What to look for in CBS.log
The CBS log sits at C:\Windows\Logs\CBS\CBS.log, and it records component servicing, the part of Windows that installs updates. Open it in Notepad and search for 80070002. The useful entries name a file or a folder. Microsoft gives three examples: a missing .NET service entry, a missing System Tools folder, and a missing DLL in the WinSxS store, such as DWrite.dll.
| What the log names | What it means | Next fix |
|---|---|---|
| A DLL in WinSxS, such as DWrite.dll | A component store file is missing | DISM RestoreHealth, then install the update by hand |
| A missing folder, such as System Tools | A folder the update expects is gone | Restore the folder from a working PC with the same Windows version |
| A service that fails to start, such as clr_optimization | A service entry points at a missing file | Back up and remove the broken service key, only as Microsoft documents |
| A driver file, such as flpydisk.inf | A driver update cannot find its files | Update the driver from the PC maker, or remove the failed driver update |
Write down the file or folder name before you act on it. Do not copy DLL files from random download sites, and do not edit the registry on the strength of a forum post. The registry fixes Microsoft documents for this error apply to specific named entries, such as the clr_optimization service keys or the flpydisk driver keys, and only when the log names that exact entry on your PC. Guessing at registry keys can leave Windows unable to start. Microsoft Learn documents the log entries and resolutions for error 0x80070002, including the CBS log location and the exact entries to look for.
Install the failed update by hand
When this works: the update itself downloads badly through Windows Update every time, but the standalone package installs cleanly. This is a useful test as well as a fix, because it separates a broken download from a broken PC.
First, find the KB number of the failed update in Settings, then Windows Update, then Update history. Then open the Microsoft Update Catalog in a browser and search for that KB number. Download the package that matches your Windows version and architecture, which is x64 on most PCs. If you are not sure, open Settings, then System, then About, and check System type.
Run the downloaded file, follow the prompts, then restart when it asks. Success is the update showing as installed in Update history with no error code. If the standalone package fails with the same code, the download was never the problem. Go back to the log section and find the file it names. Do not install a different KB number to work around the failure, and do not download update packages from anywhere except the Microsoft Update Catalog.
If it is a Store app, reset the Store cache
When this works: the error appears while a Store app downloads, updates, or installs, rather than during a Windows update. The Store keeps its own cache, and the Windows Update cache fix does not touch it.
Press Windows key plus R, type wsreset.exe, and press Enter. A blank Command Prompt window opens for a few seconds while the Store cache clears, then the Microsoft Store opens on its own. That is the whole fix. Try installing the app again. If it still fails, open Settings, then Apps, then Installed apps, find Microsoft Store, select Advanced options, and use Repair, then Reset if Repair does not help. Resetting the Store signs you out, so you will need to sign back in.
Do an in-place repair install as the last resort
When this works: every earlier fix has failed, DISM and SFC cannot repair the damage, and the logs point at component store damage rather than one named file. A repair install, also called an in-place upgrade, reinstalls Windows over itself using installation media, while keeping your files and apps if you choose that option. It takes an hour or more, which is why it is the last resort.

Before you start
Back up your files first, to an external drive or a cloud location, even though the repair is designed to keep them. Make sure the PC is plugged into power, has a stable internet connection, and has enough free space. Download the Media Creation Tool from Microsoft and use it to create installation media on a USB drive, or to download an ISO file you can mount. The media must match your current Windows edition and language.
Run the repair install
- Open File Explorer, open the USB drive with the installation media, and double click setup.exe. Select Yes when asked to allow changes.
- Follow the setup prompts until you reach Change what to keep, and select it.
- Select Keep personal files and apps. This preserves your personal data, apps, and settings.
- Select Next, then Install, and wait. The PC restarts several times. Do not turn it off during the install.
- When setup finishes and you reach the desktop, open Settings, then Windows Update, then Check for updates, and install any updates offered.
Microsoft documents these options: Keep personal files and apps preserves your data, apps, and settings, Keep personal files only preserves your data and settings but removes your apps, and Keep nothing removes everything. For a repair, choose the first option. If setup does not offer it, the media does not match your installed edition or language, so stop and remake the media.
If it still fails
When nothing above has fixed it, stop repeating fixes and gather the details someone else will need. Write down the KB number, the exact stage where it fails, the file the CBS log names, and which fixes you already tried.
Before you seek help, check for a newer BIOS, chipset, or storage driver from the PC maker for your exact model, and check the drive itself, since a failing drive can produce file-not-found errors no cache clear will fix. Run chkdsk C: from an administrator Command Prompt to scan the system drive.
Do not run registry cleaners, do not download DLL files from unofficial sites, and do not wipe the PC and reinstall from scratch until you have the log evidence. A clean install fixes almost anything, but it also removes your apps and settings. If the logs name a file you cannot restore and the repair install fails, a clean install is the remaining option, but only after a full backup.
Error 0x80070002 looks alarming, but it is a specific message, not a vague one. It says a file is missing, and the logs say which file. Start with the branch that matches where the error appears, clear the cache, repair the system files, read the logs, and only then reach for the repair install. Most PCs are fixed by the cache clear or by DISM and SFC.
- How to Fix Windows Update Error 0x80070002 [Fix] - November 29, 2026
- How to Check What Type of RAM You Have: DDR4 or DDR5 (3 Ways) - November 28, 2026
- How to Fix a New SSD Not Showing Up in Disk Management [Fix] - November 27, 2026
