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:
[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
- Press Win + I to open the Settings window.
- Click on Update & Security.
- Then, select the Troubleshoot option on the left side of the panel.
- Now, go to the right side of the window, scroll down and click on Additional troubleshooters.
- In the next window, under the Get up and running section, click on Windows Update.
- 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.
- Right-click on Start menu and select Run
- Type msconfig in the Run command and hit Enter.
- 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. - Now, right-click on Start menu and select File Explorer.
- 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. - Now, we need to reset the catroot2 folder.
For this, go to Start and type Command Prompt in the Windows search bar. - Right-click on the result and select Run as administrator to open Command Prompt.
- 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
- 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
- Press Win + R to open the Run command.
- Type cmd and press Ctrl + Shift + Enter keys in order to open the Command Prompt in admin mode.
- 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
- For this, go to Start and type cmd in the Windows search bar.
- Now, right-click on the result (Command Prompt) and select Run as administrator to open Command Prompt with Admin rights.
- 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.
- Right-click on Start menu and click on Run to open the Run command.
- In the Run command search field, type services.msc and hit Enter to open the Service manager window.
- 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. - Now, right-click on the service and select Properties.
- 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:
- Click on the below link to download the Background Intelligence Transfer Service Troubleshooter:
http://aka.ms/diag_bits10 - Now, launch the troubleshooter and click on Advanced at the bottom.
- Then, uncheck the box next to Apply repairs automatically and click on Next.
- 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:
- Open Command Prompt and run it as an admin.
- In the console window, type the following commands:
net stop bits net stop wuauserv
- Next, enter the following command to delete the qmgr*.dat files:
Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”
- Press Enter to execute.
- Rename the Software Distribution folder using the following commands:
Ren %systemroot%\SoftwareDistribution\DataStore *.bak Ren %systemroot%\SoftwareDistribution\Download *.bak Ren %systemroot%\system32\catroot2 *.bak
- 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)
- Next, type in the following command to open the System 32 folder:
cd /d %windir%\system32
- 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
- Reset Winsock using this line:
netsh winsock reset
- Set the proxy settings as well:
proxycfg.exe -d
- 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.
0 Comments