Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

How to Fix Windows Update Error 0x8007012f

by | Nov 30, 2020

Windows Update Error 0x8007012f occurs when we try to install a new Windows update.

As part of our Server Management Services, we help our customers with software installations regularly.

Today, let us discuss various methods to fix Windows Update Error 0x8007012f and its causes.

 

Windows Update Error 0x8007012f

The Windows Update Error 0x8007012f on Windows 10 PC can show up whenever we try to install any kind of Windows update (including apps, system and feature updates).

The error message states:

There were some problems installing updates, but we’ll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x8007012F). The operation has failed The file cannot be opened because it is in the process of being deleted. Error code: 0x8007012F

[Facing the same error? We are available 24*7]

 

Causes of Windows Update Error 0x8007012f

  • Poor internet connection:

If we have poor internet connection, the download will not be complete and files might get corrupt.

  • Presence of malware.
  • Firewall or security:

These security features manage incoming traffic to our computer and they filter what is coming in. If they are overprotective, we might encounter issues when downloading the updates.

  • Old installer files:

A major reason can be the old installer files present on computer. The update might get interrupted at some point and if we download another copy of the installer files without completely deleting the old files, Windows Update does not recognize the new files. Unless we remove the old downloads first we will get the error.

Let us now focus on some of the solutions our Support Engineers employ.

 

Solutions for Windows Update Error 0x8007012f

For a general troubleshoot, we switch to a different internet connection. If we cannot connect via a cable we move our computer or laptop in the same room as the router/modem.

First, we scan for malware and get rid of junk files. Not only will this remove nasty elements from computer, it will also be making more space for the download..

Later, we reboot our computer. Starting with a fresh system helps eliminate temporary glitches that might be getting in the way of the update process.

[Still facing the error? Don’t worry. Follow these easy solutions provided by our Support Engineers.]

 

  • Run the Windows Update Troubleshooter

  1. Press Win + I to open the Settings window.
  2. Click on Update & Security.
  3. Then, select the Troubleshoot option on the left side of the panel.
  4. Now, go to the right side of the window, scroll down and click on Additional troubleshooters.
  5. In the next window, under the Get up and running section, click on Windows Update.
  6. Then click on Run the troubleshooter button below it.
    Now, let the troubleshooter run and detect the issues. If any issues found, it will fix them automatically.
  • Deleting Contents SoftwareDistribution and catroot2

We need to boot our PC into safe mode to be able to delete the contents in the SoftwareDistribution folder.

  1. Right-click on Start menu and select Run
  2. Type msconfig in the Run command and hit Enter.
  3. Then, In the System Configuration window, click on the Boot tab.
    Check the box next to Safe boot.
    If we need to use the internet while in Safe Mode, select the radio button next to Network.
    Press Apply and then OK to save the changes.
    Now, every time we turn on your PC, it will boot into Safe Mode. we can also undo the changes later on.
  4. Now, right-click on Start menu and select File Explorer.
  5. Copy and paste the below path in the File Explorer address bar and hit Enter:
    C:\Windows\SoftwareDistribution
    Now, press Ctrl + A to select all the folder contents and hit Delete.
  6. Now, we need to reset the catroot2 folder.
    For this, go to Start and type Command Prompt in the Windows search bar.
  7. Right-click on the result and select Run as administrator to open Command Prompt.
  8. Now, type the below commands one by one in the Command Prompt (admin) window and hit Enter after each command:
    net stop cryptsvc
    md %systemroot%\system32\catroot2.old
    xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s
  9. We can now delete all the contents in the catroot2 folder.
    Now, type the below command in the Command Prompt (admin) window and hit Enter:

    net start cryptsvc

    Reboot PC, start Windows Update again and the catroot2 folder should be reset.

  • Clear Pending.xml File

  1. Press Win + R to open the Run command.
  2. Type cmd and press Ctrl + Shift + Enter keys in order to open the Command Prompt in admin mode.
  3. In the Command Prompt (admin) window, run the below command and hit Enter:
    Ren c:\windows\winsxs\pending.xml pending.old

    This will rename the pending.xml file to pending.old.

  • Clear the BITS Queue

  1. For this, go to Start and type cmd in the Windows search bar.
  2. Now, right-click on the result (Command Prompt) and select Run as administrator to open Command Prompt with Admin rights.
  3. In the Command Prompt (admin) window, write the below command and hit Enter:
    bitsadmin.exe /reset /allusers
  • Run BITS Troubleshooter

BITS (Background Intelligence Transfer Service) facilitates download, transfer, or uploading of files to and fro a client and a server. It then offers the progress report of the transfers. But, before you proceed using the BITS troubleshooter, make sure that you re-start the Background Intelligence Transfer Service.

  1. Right-click on Start menu and click on Run to open the Run command.
  2. In the Run command search field, type services.msc and hit Enter to open the Service manager window.
  3. In the Services window, go to the right side and under thee Names column, look for Background Intelligence Transfer Service.
    If it is Stopped, right-click on it and select Start.
    If it is Started, then right-click on the service and select Restart.
  4. Now, right-click on the service and select Properties.
  5. Then, under the General tab, go to the Startup type field and set it to Manual.
    Press Apply and then OK to save the changes and exit.

Now, proceed with the BITS trouble shooting:

  1. Click on the below link to download the Background Intelligence Transfer Service Troubleshooter:
    http://aka.ms/diag_bits10
  2. Now, launch the troubleshooter and click on Advanced at the bottom.
  3. Then, uncheck the box next to Apply repairs automatically and click on Next.
  4. It will start detecting problems. Once it completes the scan, it will display a list of possible causes for the issue.
    Click on Next to proceed with the fix.
    Now, reboot PC and the Windows Update error 0x8007012f should be gone.
  • Run the SFC Tool

The System File Checker is a built-in utility to scan, repair, or restore corrupted system files on Windows 10.

If the Windows 10 error 0x8007012F triggers by corrupt installation files or Windows Update service, running this tool should fix it.

To run this tool, open Command Prompt with administrator privileges, and enter the command:

sfc /scannow

If the SFC tool does not work, we need to run a deeper scan using Deployment Image Servicing and Management or DISM tool. It works just like SFC, just that the scope of the scan is bigger and deeper.

The commands we use for DISM include:

DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth

We let the tool run its course because it will automatically try to repair any corrupted files detected during the scan.

  • Reset Windows Update Service

Since this error is caused mostly by old download files, we need to reset the Windows Update components and rename the download folder to something else, so as to create a new Windows Update folder.

By renaming the old folder, the computer will no longer recognize it and will instead refer to the fresh folder.

To do this:

  1. Open Command Prompt and run it as an admin.
  2. In the console window, type the following commands:
    net stop bits
    net stop wuauserv
  3. Next, enter the following command to delete the qmgr*.dat files:
    Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”
  4. Press Enter to execute.
  5. Rename the Software Distribution folder using the following commands:
    Ren %systemroot%\SoftwareDistribution\DataStore *.bak
    Ren %systemroot%\SoftwareDistribution\Download *.bak
    Ren %systemroot%\system32\catroot2 *.bak
  6. Then, reset the BITS service as well as the Windows Update service to their default security descriptor using the commands below:
    sc.exe sdset bits
    D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
    sc.exe sdset wuauserv
    D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
  7. Next, type in the following command to open the System 32 folder:
    cd /d %windir%\system32
  8. You need to re-register the Windows Update components using these commands:
    regsvr32.exe atl.dll
    regsvr32.exe urlmon.dll
    regsvr32.exe mshtml.dll
    regsvr32.exe shdocvw.dll
    regsvr32.exe browseui.dll
    regsvr32.exe jscript.dll
    regsvr32.exe vbscript.dll
    regsvr32.exe msxml.dll
    regsvr32.exe msxml3.dll
    regsvr32.exe msxml6.dll
    regsvr32.exe actxprxy.dll
    regsvr32.exe softpub.dll
    regsvr32.exe wintrust.dll
    regsvr32.exe dssenh.dll
    regsvr32.exe rsaenh.dll
    regsvr32.exe gpkcsp.dll
    regsvr32.exe sccbase.dll
    regsvr32.exe slbcsp.dll
    regsvr32.exe cryptdlg.dll
    regsvr32.exe oleaut32.dll
    regsvr32.exe ole32.dll
    regsvr32.exe shell32.dll
    regsvr32.exe initpki.dll
    regsvr32.exe wuapi.dll
    regsvr32.exe wuaueng.dll
    regsvr32.exe wuaueng1.dll
    regsvr32.exe wucltui.dll
    regsvr32.exe wups.dll
    regsvr32.exe wups2.dll
    regsvr32.exe wuweb.dll
    regsvr32.exe qmgr.dll
    regsvr32.exe qmgrprxy.dll
    regsvr32.exe wucltux.dll
    regsvr32.exe muweb.dll
    regsvr32.exe wuwebv.dll
  9. Reset Winsock using this line:
    netsh winsock reset
  10. Set the proxy settings as well:
    proxycfg.exe -d
  11. Restart Windows Update using these commands:
    net start bits
    net start wuauserv

Usually, the last option is to do a clean install of Windows 10, unless the given steps do not help. It may mean more work, but it will resolve any Windows Update we might be having.

This is actually necessary if we encounter the Windows Update Error 0x8007012f for every update we want to install. Generally, if the issue is not too serious, the solutions above should help in some way.

[Looking for assistance to fix windows errors? We are here for you!]

Conclusion

To conclude, the Windows Update Error 0x8007012f show up when you try to install any kind of Windows update. In this article, we saw some solutions provided by our Experienced Support Techs.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF