How to fix error 0x8007139f when updating Windows 10?
We all need to update Windows 10 from time to time, but sometimes error 0x8007139f can get in our way. You can stumble upon this code while downloading or installing updates for the system. In today’s article, we will see with you how you can get rid of this error in several methods.
Method # 1 Antivirus check
Sometimes the cause of the error 0x8007139f can be the antivirus installed on the user’s computer. Suppose this is indeed the case – what to do? The simplest solution is to disable active antivirus protection. Once you disable your antivirus, try updating Windows again.
It is worth noting that sometimes it may be necessary to completely remove the antivirus from the system. If you are ready to take such a step, then we recommend that you do it, and then see if the problem is resolved.
Method # 2 Run the troubleshooter
In some cases with error 0x8007139f, the system update troubleshooter can help. Open your system settings and go to the Update & Security section. In this section, go to the Troubleshooting subsection.
Here you will see many items for a variety of system components, but you need to find “Windows Update” and click on it with the left mouse button. As soon as you do this, a button “Run the troubleshooter – click on it” will appear under this item.
Then just follow the instructions on the screen and apply the solution that prompts you with the troubleshooter. As soon as you finish working with the tool, go to Update Center and try to install the update for Windows again. Error 0x8007139f may have gone away.
Method # 3 Running SFC and DISM
A similar error could occur due to corruption of system files. You can try to repair them using tools like SFC and DISM. To use them, you first need to call the Command Prompt (Windows + X) in front of you. After that, run the following two commands:
- sfc / scannow;
- DISM / Online / Cleanup-Image / RestoreHealth.
Be sure to restart your computer after executing each of the commands. Once you’re done with SFC and DISM, check if error 0x8007139f is gone.
Method # 4 Creating a new account
Some users claim that they managed to fix the problem by creating a new account in their Windows. It is possible that not everything is in order with your main account, which causes problems when updating the system.
Open the system settings and go to the “Accounts” section. Then go to the subsection “Family and other people”. Here you need to click on the “Add a user for this computer” button. In the window that appears, click on the line “I have no login information for this person.”
Now click on the line “Add a user without a Microsoft account.” Provide a name for your new account and click Next. As soon as you create a new local account, log into your Windows under it and try to install updates. If it was about the account, then the error 0x8007139f will disappear.
Method # 5 Resetting the Update Center components
According to some users, it is possible to get rid of this error (and others like it) by resetting Windows Update components. As a rule, this process is carried out using the Command line, however, you can get by with a special bat-file with a set of necessary commands. Create the most basic text document (.txt) on your desktop. Next, open the text editor and paste the following lines into it:
:: Reset Update Center
:: Checking and Stopping the Windows Update services
set b = 0
set / ab =% b% + 1
if% b% equ 3 (
net stop bits
echo Checking the bits service status.
sc query bits | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
echo Cannot reset Windows Update since “Background Intelligent Transfer Service” (bits) service failed to stop.
set w = 0
set / aw =% w% + 1
if% w% equ 3 (
net stop wuauserv
echo Checking the wuauserv service status.
sc query wuauserv | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
echo Cannot reset Windows Update since “Windows Update” (wuauserv) service failed to stop.
set app = 0
set / a app =% app% + 1
if% app% equ 3 (
net stop appidsvc
echo Checking the appidsvc service status.
sc query appidsvc | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
echo Cannot reset Windows Update since “Application Identity” (appidsvc) service failed to stop.
set c = 0
set / ac =% c% + 1
if% c% equ 3 (
net stop cryptsvc
echo Checking the cryptsvc service status.
sc query cryptsvc | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
echo Cannot reset Windows Update since “Cryptographic Services” (cryptsvc) service failed to stop.
Ipconfig / flushdns
del / s / q / f “% ALLUSERSPROFILE% Application Data Microsoft Network Downloader qmgr * .dat”
del / s / q / f “% ALLUSERSPROFILE% Microsoft Network Downloader qmgr * .dat”
del / s / q / f “% SYSTEMROOT% Logs WindowsUpdate *”
if exist “% SYSTEMROOT% winsxs pending.xml.bak” del / s / q / f “% SYSTEMROOT% winsxs pending.xml.bak”
if exist “% SYSTEMROOT% winsxs pending.xml” (
takeown / f “% SYSTEMROOT% winsxs pending.xml”
attrib -r -s -h / s / d “% SYSTEMROOT% winsxs pending.xml”
ren “% SYSTEMROOT% winsxs pending.xml” pending.xml.bak
if exist “% SYSTEMROOT% SoftwareDistribution.bak” rmdir / s / q “% SYSTEMROOT% SoftwareDistribution.bak”
if exist “% SYSTEMROOT% SoftwareDistribution” (
attrib -r -s -h / s / d “% SYSTEMROOT% SoftwareDistribution”
ren “% SYSTEMROOT% SoftwareDistribution” SoftwareDistribution.bak
if exist “% SYSTEMROOT% system32 Catroot2.bak” rmdir / s / q “% SYSTEMROOT% system32 Catroot2.bak”
if exist “% SYSTEMROOT% system32 Catroot2” (
attrib -r -s -h / s / d “% SYSTEMROOT% system32 Catroot2”
ren “% SYSTEMROOT% system32 Catroot2” Catroot2.bak
:: Reset Windows Update policies
reg delete “HKCU SOFTWARE Policies Microsoft Windows WindowsUpdate” / f
reg delete “HKCU SOFTWARE Microsoft Windows CurrentVersion Policies WindowsUpdate” / f
reg delete “HKLM SOFTWARE Policies Microsoft Windows WindowsUpdate” / f
reg delete “HKLM SOFTWARE Microsoft Windows CurrentVersion Policies WindowsUpdate” / f
gpupdate / force
:: Reset the BITS service and the Windows Update service to the default security descriptor
sc.exe sdset bits D: (A ;; CCLCSWRPWPDTLOCRRC ;;; SY) (A ;; CCDCLCSWRPWPDTLOCRSDRCWDWO ;;; BA) (A ;; CCLCSWLOCRRC ;;; AU) (A ;; CCLCSWRPWP ;; PU)
sc.exe sdset wuauserv D: (A ;; CCLCSWRPWPDTLOCRRC ;;; SY) (A ;; CCDCLCSWRPWPDTLOCRSDRCWDWO ;;; BA) (A ;; CCLCSWLOCRRC ;;; AU) (A ;; CCLCSWRPWPDTL;
:: Reregister the BITS files and the Windows Update files
cd / d% windir% system32
regsvr32.exe / s atl.dll
regsvr32.exe / s urlmon.dll
regsvr32.exe / s mshtml.dll
regsvr32.exe / s shdocvw.dll
regsvr32.exe / s browseui.dll
regsvr32.exe / s jscript.dll
regsvr32.exe / s vbscript.dll
regsvr32.exe / s scrrun.dll
regsvr32.exe / s msxml.dll
regsvr32.exe / s msxml3.dll
regsvr32.exe / s msxml6.dll
regsvr32.exe / s actxprxy.dll
regsvr32.exe / s softpub.dll
regsvr32.exe / s wintrust.dll
regsvr32.exe / s dssenh.dll
regsvr32.exe / s rsaenh.dll
regsvr32.exe / s gpkcsp.dll
regsvr32.exe / s sccbase.dll
regsvr32.exe / s slbcsp.dll
regsvr32.exe / s cryptdlg.dll
regsvr32.exe / s oleaut32.dll
regsvr32.exe / s ole32.dll
regsvr32.exe / s shell32.dll
regsvr32.exe / s initpki.dll
regsvr32.exe / s wuapi.dll
regsvr32.exe / s wuaueng.dll
regsvr32.exe / s wuaueng1.dll
regsvr32.exe / s wucltui.dll
regsvr32.exe / s wups.dll
regsvr32.exe / s wups2.dll
regsvr32.exe / s wuweb.dll
regsvr32.exe / s qmgr.dll
regsvr32.exe / s qmgrprxy.dll
regsvr32.exe / s wucltux.dll
regsvr32.exe / s muweb.dll
regsvr32.exe / s wuwebv.dll
regsvr32.exe / s wudriver.dll
netsh winsock reset
netsh winsock reset proxy
:: Set the startup type as automatic
sc config wuauserv start = auto
sc config bits start = auto
sc config DcomLaunch start = auto
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
Save the inserted lines in the text editor, and then change its extension from .txt to .bat. Then just double-click on it to start the automatic process of resetting the Update Center components. When the reset is complete, try updating Windows again and check if the error 0x8007139f is gone.
Method # 6 System Restore
If you still keep getting the error in question, then you can try to restore your system. This approach will surely save you from error 0x8007139f once and for all. Press on the Windows keyboard + S and write in the search bar “Recovery”.
Having opened the appropriate section of the Control Panel, click on the line “Start System Restore”. Wait a little, after which a small window will appear in front of you. Here you need to select the restore point created before the error appeared and start the restore. Be aware that your PC may reboot in the process.
Method # 7 Installing the update manually
You can always spit on the automatic update installation tools and try to install the required update yourself. Open your system settings and go to the Update & Security section. Next, open the subsection “Windows Update”.
Here you need to click on the item “View the update log” and find the update number, next to which the code 0x8007139f flaunts. After that go to following link to the Microsoft Update Catalog and download the problematic update. After downloading the installer, double-click on it and follow the instructions on the screen. In this case, no error 0x8007139f should appear, because we excluded the Update Center from the process.