0x8007012F Windows Update Error: How to Fix It

Running the Windows Update troubleshooter is the fastest solution

by Afam Onyimadu
Afam Onyimadu
Afam Onyimadu
Afam is a geek and the go-to among his peers for computer solutions. He has a wealth of experience with Windows operating systems, dating back to his introduction... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • The 0x8007012f Windows update error makes it impossible to complete the process.
  • Old update files, corrupt files, or inactive update services are easy causes of this error. 
Repair all Windows Updates Errors with Fortect: Windows update failures can be annoying! With Fortect, you will get rid of errors caused by missing or corrupted files after an update. The utility maintains a repository of the original Windows system file versions, and it uses a reverse algorithm to swap out the damaged ones for good ones.
  1. Download Fortect and install it on your PC
  2. Start the tool's scanning process to look for corrupt files that are the source of the issues
  3. Right-click on Start Repair to resolve security and performance issues with your computer
  • Fortect has been downloaded by 0 readers this month.

Updating Windows is essential as it helps your computer’s security, stability, and performance. However, errors like 0x8007012F will interrupt the process, leading to a failed update.

It often comes with the notification failed to install. We have researched the error, and in this guide, we introduce the most effective solutions in this article.

What causes the 0x8007012F Windows update error?

We gather that the elements below are the primary causes:

  • Update interruption – This may happen when some vital update services are not running or are poorly configured.
  • Cache-related issues – A few people will experience the error if they have old or corrupted cache files.
  • Old installer files – If you have old download files on your computer, it may cause conflicts when installing new files and trigger the error.
  • Bad system files – For many users, corrupt system files will interfere with the update process and may trigger an error.

The solutions below would come in handy.

How do I fix the 0x8007012f error?

1. Run the Update troubleshooter

  1. Press Windows + I to open the Settings app.
  2. Click on Troubleshoot.
  3. Select Other troubleshooters.
  4. Search for Windows Update and click Run.
  5. Retry the update and verify the error is fixed.

The manual process of troubleshooting your Windows may take longer or don’t fix the issue at all.

However, you have the alternative of using a dedicated system repair tool and entirely restoring corrupted PC files.

2. Reset BITS and other Windows update components

  1. Press Windows + R, type cmd, and hit Ctrl + Shift + Enter.
  2. Type the scripts below and hit Enter after each one to stop vital update components:
    net start wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  3. Rename the SoftwareDistribution and Catroot2 folders by typing the scripts below and hitting Enter after each one.
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 Catroot2.old
  4. Restart the stopped services by running the scripts below:
    net start wauserv
    net start cryptSvc
    net start bits
    net start msiserver

3. Fix system files with a file scan

  1. Press Windows + R, type cmd, and hit Ctrl + Shift + Enter.0x8007012f
  2. Input the script below and hit Enter:
    sfc /scannow
  3. The process may take a while. Follow the sunscreen instructions if any repair is needed, then verify it fixed the 0x8007012f error.

4. Clean the cache folder

  1. Press Windows + R, type services.msc, and hit Enter.
  2. Search for the Windows Update service, double-click on it, and hit Stop if it is running.
  3. Don’t close the Services Windows since you will need to restart the stopped service.
  4. Press Windows + E, then navigate to the path below, select all the items, and delete them.
  5. Repeat the process, deleting all the content in the path below:
  6. Return to the open services Windows and restart the stopped Windows Update service.

5. Remove the residual Pending.xml files

  1. Press Windows + R, type cmd, and hit Ctrl + Shift + Enter.0x8007012f
  2. Type the code below and hit Enter:
    Ren c:\windows\winsxs\pending.xml pending.old
  3. Restart the update and confirm the 0x8007012f error is fixed.

Old updates in this file may stop you from getting new security patches. So, renaming the file forces the computer to create a new Pending.xml file.

Any of the solutions above should fix the update problem. It would be best to try what feels most applicable since they have not been written in any particular order.

Lastly, please update us on the fix that worked using the comments section below.

Still experiencing issues?


If the above suggestions have not solved your problem, your computer may experience more severe Windows troubles. We suggest choosing an all-in-one solution like Fortect to fix problems efficiently. After installation, just click the View&Fix button and then press Start Repair.

This article covers:Topics: