How to Fix Windows Update Errors 0x80070002 & 0x800f081f

Windows Update error codes like 0x80070002 (ERROR_FILE_NOT_FOUND) and 0x800f081f (CBS_E_SOURCE_MISSING) happen when Windows attempts to unpack an update payload but encounters corrupted manifests or partial downloads. You don't need third-party repair tools—learn how to completely rebuild the Windows Update agent using native command lines.

Step 1: Stop Windows Update Services

Before clearing out corrupted update files, you must stop the background Windows Update service (wuauserv), Background Intelligent Transfer Service (BITS), and Cryptographic Services:

Open Command Prompt as Administrator (Win + X > Terminal/CMD Admin) and run:

Command Prompt (Admin)
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver

Step 2: Rename SoftwareDistribution & Catroot2 Folders

Renaming these directories forces Windows to discard damaged update files and generate a pristine, uncorrupted database:

Command Prompt (Admin)
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old

Step 3: Restart Windows Update Services

Now restart the background services so Windows can recreate fresh directories:

Command Prompt (Admin)
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

Step 4: Resolve 0x800f081f with DISM Component Cleanup

Error 0x800f081f explicitly means the Windows Component Store (WinSxS) has missing source files required for servicing. Repair it using DISM with cloud source verification:

Command Prompt (Admin)
DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /RestoreHealth

Step 5: Check for Updates Again

Reboot your computer, open Settings > Windows Update, and click "Check for updates". The update will download fresh files and install smoothly!