Step-by-Step Guide to Fix Error Code 0x80070012

0x80070012 Error: Corrupted System Components or Pending Update

Try it yourself, or Reach Out!

If you still need a hand, we’re just a plan away

What is the 0x80070012 Error?


Error 0x80070012 occurs when a system component store is corrupted or a previous update is still pending, preventing new updates from being applied. This typically happens when update processes overlap or when critical system files and manifests in the Component-Based Servicing (CBS) or WinSxS store are damaged. When this error appears, updates cannot be completed, and users may see messages such as “Windows Update failed to install updates” or “There were some problems installing updates.” Common causes include incomplete updates, interrupted servicing operations, or corrupted pending.xml files.

Causes

  • Corrupted or incomplete component store (WinSxS) – Damaged update components block new installations.
  • Pending update conflicts – Unfinished updates or restart-required operations interfere with new ones.
  • Interrupted update installations – Power loss or forced shutdown during updates can cause corruption.
  • Damaged CBS logs or pending.xml file – Invalid or incomplete manifests prevent Windows from servicing updates.
  • Malware or third-party cleanup utilities – Tools that remove system files or registry entries can disrupt updates.
  • File system or disk errors – Bad sectors on the drive may prevent updated data from being read or written properly.

Resolution Steps




1. Restart Your Computer and Retry the Update

  • Save your work and restart your PC.
  • After reboot, go to Settings - Windows Update - Check for updates.

2. Run the System File Checker (SFC)

  • Open Command Prompt (Admin) and run:

sfc /scannow

  • This scans and repairs missing or corrupted Windows files.
  • Once completed, restart your system and retry the update.

3. Use the DISM Tool to Repair Windows Image

  • Run these commands in Command Prompt (Admin) one by one:

DISM /Online /Cleanup-Image /CheckHealth  

DISM /Online /Cleanup-Image /ScanHealth  

DISM /Online /Cleanup-Image /RestoreHealth

  • When done, restart your computer and try Windows Update again.

4. Delete the Pending.xml File

A corrupted or stuck pending.xml file can block updates.

  • Open Command Prompt (Admin).
  • Type the following commands:

net stop trustedinstaller  

del %windir%\winsxs\pending.xml

  • If you receive an access denied message, rename it instead:

ren %windir%\winsxs\pending.xml pending.old

  • Then restart your computer and retry updates.

5. Reset Windows Update Components

  • Run these commands in Command Prompt (Admin):

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

  • This forces Windows to recreate a fresh update environment.

6. Repair the Component Store Using PowerShell

  • Open PowerShell (Admin) and execute:

Repair-WindowsImage -Online -RestoreHealth

  • After the repair completes, restart your PC and run the update again.

7. Check for Disk Errors

  • Open Command Prompt (Admin) and type:

chkdsk C: /f /r

  • Press Y when prompted, then restart your PC to let the disk scan run.

8. Run the Windows Update Troubleshooter

  • Go to Settings - System - Troubleshoot - Other troubleshooters.
  • Select Windows Update - Run.
  • Apply the recommended fixes and restart your system.

9. Manually Install the Pending Update

If updates still fail through Windows Update:

  1. Visit the Microsoft Update Catalog website.
  2. Search for the KB number of the failed update.
  3. Download and install it manually.


We’re Here for You!


Follow our step-by-step instructions to troubleshoot the issue. Still need help?
Contact us and choose a plan, and our experts will take care of it for you.

Transparent Pricing

Simple, upfront pricing with no hidden fees or surprises

Endpoints

  • Desktops$49
  • Laptops$49
  • Mobile Devices (MDM)$19
  • Workstations$69
  • POS/Kiosks$49
  • Network Printers$29
  • Purchase Now

Network

  • Routes$29
  • Switches$15
  • Firewalls$29
  • Access Points$9
  • VPN Gateways$19
  • Load Balancers$49
  • Purchase Now

Server

  • On-Prem Servers$99
  • Virtual Servers$69
  • Cloud Servers$99
  • Storage Systems (NAS/SAN)$49
  • Backup Appliances$99
  •   
  • Purchase Now

Security

  • Endpoint Protection (EDR)$9
  • AV/Antimalware$9
  • Patch Management$9
  • Web Filtering$9
  • MFA$5
  •   
  • Purchase Now

BDR

  • Local Backup$49
  • Cloud Backup$49
  • DR Infrastructure$199
  •   
  •   
  •   
  • Purchase Now

Compliance

  • Policy Mgmt & Audits$149/month
  • DLP$5/user
  • IT Governance Tools$199/month
  •   
  •   
  •   
  • Purchase Now

NOC

  • 24/7 Monitoring$10/device
  • RMM Tools$3/device
  • MDR Service$25/device
  •   
  •   
  •   
  • Purchase Now

SOC & SIEM

  • Threat Intelligence$199/month
  • Cloud SIEM (Sentinel, etc.)$200–$1000+
  •   
  •   
  •   
  •   
  • Purchase Now

Helpdesk

Open a Ticket / Contact Us

Need help now or want to explore partnership options?

Subscribe our newsletter to stay updated!