• November 29, 2023

How to fix error 2149842967 when updating Windows?

Error 2149842967 occurs in Event Viewer after an unsuccessful installation of a Windows update using the offline installer. However, some users claim that this code can also be seen during unattended installations, but this happens in extremely rare cases.

What causes error 2149842967?

The appearance of this error means that you are trying to install an update that is already present in the system, or it does not suit it at all.

If you are sure of what you are doing, you can force the installation of the required update by downloading it from the Microsoft Update Catalog. You can also fix the error by using the troubleshooter or by performing the procedure to reset the Update Center components.

Troubleshooting error 2149842967

2149842967

Solution # 1 Run the troubleshooter

At Microsoft on the official website, you can find a special tool that fixes problems with Windows Update. There are two versions of this tool, so choose wisely! Go to this link to download the tool.

Let’s say you need a tool for Windows 10 – download the wu10.diagcab file and run it. In the window that appears, click on the “Advanced” line and check the box next to the “Automatically apply fixes” option. Now click “Next” and follow the instructions on the screen.

The solution to error 2149842967 is not guaranteed, but it was definitely worth a try!

Solution # 2 Installing the update manually

Tired of fiddling with automatic Windows tools? Then we suggest installing the required update for the system manually. Right, you don’t have to rely on the Update Center to install new updates for your OS.

So, first of all, you need to understand which update is causing the error 2149842967 to appear. To do this, you need to go to the Update Center directory (Options → Update and Security → Update Center) and find the update signed with this code. You can also use by this resource.

Having found the update you need, go to this link to the Microsoft Update Catalog. Well, then everything is simple: we enter the update number in the search line, download it on the computer and run the installer. Everything is so elementary. After installation, of course, restart your PC.

Solution # 3 Resetting the Update Center components

Resetting the Update Center components is usually a rather lengthy and difficult process, but it is thanks to it that many problems with updating Windows are solved. This reset is performed by entering a bunch of various commands into the Command line.

But you don’t want these to do everything, do you? Now we will show you how to create a convenient “batch file” on your computer that will do everything for you. Open the most ordinary Notepad and paste all the following commands into it:

@ECHO OFF
echo.
echo.
PAUSE
echo.
set b = 0

: bits
set / ab =% b% + 1
if% b% equ 3 (
goto end1
)
net stop bits
echo Checking the bits service status.
sc query bits | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
goto bits
)
goto loop2

: end1
cls
echo.
echo Failed to reset Windows Update due to bits service failing to stop
echo Please run the script as administartor by right clicking the WuReset file or your BITS service isn’t responding.
echo.
pause
goto Start

: loop2
set w = 0

: wuauserv
set / aw =% w% + 1
if% w% equ 3 (
goto end2
)
net stop wuauserv
echo Checking the wuauserv service status.
sc query wuauserv | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
goto wuauserv
)
goto loop3

: end2
cls
echo.
echo Failed to reset Windows Update due to wuauserv service failing to stop.
echo.
pause
goto Start

: loop3
set app = 0

: appidsvc
set / a app =% app% + 1
if% app% equ 3 (
goto end3
)
net stop appidsvc
echo Checking the appidsvc service status.
sc query appidsvc | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
goto appidsvc
)
goto loop4

: end3
cls
echo.
echo Failed to reset Windows Update due to appidsvc service failing to stop.
echo.
pause
goto Start

: loop4
set c = 0

: cryptsvc
set / ac =% c% + 1
if% c% equ 3 (
goto end4
)
net stop cryptsvc
echo Checking the cryptsvc service status.
sc query cryptsvc | findstr / I / C: “STOPPED”
if not% errorlevel% == 0 (
goto cryptsvc
)
goto reset

: end4
cls
echo.
echo Failed to reset Windows Update due to cryptsvc service failing to stop.
echo.
pause
goto Start

: Reset
Ipconfig / flushdns
del / s / q / f “% ALLUSERSPROFILE% Application Data Microsoft Network Downloader qmgr * .dat”

cd / d% windir% system32

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
)

if exist “% SYSTEMROOT% WindowsUpdate.log.bak” del / s / q / f “% SYSTEMROOT% WindowsUpdate.log.bak”
if exist “% SYSTEMROOT% WindowsUpdate.log” (
attrib -r -s -h / s / d “% SYSTEMROOT% WindowsUpdate.log”
ren “% SYSTEMROOT% WindowsUpdate.log” WindowsUpdate.log.bak
)

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;

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 / s wudriver.dll
netsh winsock reset
netsh winsock reset proxy

: Start
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
echo Task completed sucessfully! Please restart your computer and check for the updates again.
PAUSE

Now click on “File” in the menu bar and select “Save As …”. Choose a directory convenient for you, give a suitable name for the file and, attention, change its extension from TXT to BAT. Be sure to do the latter, otherwise it won’t work. Now click the “Save” button – and the batch file we need will be created!

What to do next? Just double-click on the file and watch the process of resetting Windows Update components. Everything about everything should take a few seconds. Once the reset is complete, restart your computer and check if the error code 2149842967 has been resolved.

Earn points and exchange them for valuable prizes – details

Leave a Reply

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