Fix For Windows Update KB5034441 That Keeps Failing

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Fix for Windows Update KB5034441 that keeps failing

Solved
Hi fellow System Admins,

EDIT: I have tried the below solution on five different PC's now running Windows
10, and it fixed the issue on all of them, without having to resize the RE
partition.

If you, like me, has been annoyed by the "recent" KB5034441 Update that keeps
failing, and no suitable fix has been released by Microsoft yet. Or if you, like
me, doesn't even have Windows RE-partition enabled, and the update somehow still
fails (even though the update should be redundant in in this case), and have been
reading various fixes including Microsoft's own Powershell-script or manual
approach, that doesn't fix the issue (or at least not for me), please read this
small guide on how to solve this issue for good in a relatively easy manner:

Use a program like Veeam, Macrium or Acronis to backup your PC before continuing.
Not that these steps are very unlikely to cause any system issues, but they do
include altering system files, so better be safe than sorry.

Open CMD as Admin and write reagentc /info to determine if Windows RE is enabled or
not. If it's already disabled, continue, otherwise write reagentc /disable to
disable it.

Go to the Windows site to create Installation Media for Windows and download the
corresponding Tool for your system

Open the Tool and choose "Create Installation Media" > Next > ISO file > download
the ISO file somewhere on your C-drive, e.g. C:\ISO\ > Mount the ISO-file in
Explorer > Take note of the Drive Letter (e.g. E:)

Go back to CMD and write: DISM.exe /Get-ImageInfo /ImageFile:[Drive Letter]:\


sources\install.esd /Index:1

Write in CMD: DISM.exe /Export-Image /SourceImageFile:[Drive Letter]:\sources\


install.esd /SourceIndex:1 /DestinationImageFile:C:\install.wim /Compress:fast
/CheckIntegrity

Create a new dir: C:\MountDir

Write in CMD: DISM.exe /Mount-Wim /WimFile:C:\install.wim /index:1 /MountDir:C:\


MountDir /ReadOnly

Open C:\MountDir\Windows\System32\Recovery\ and copy both ReAgent.xml and


Winre.wim. Paste both files in a new directory somewhere else, as these files will
be used later.

Write in CMD: DISM.exe /Unmount-Wim /MountDir:C:\MountDir /discard. This will empty


the directory and unmount the DISM image.

Delete the folders C:\MountDir, C:\ISO (unmount first) and the file C:\install.wim.

Copy the two files from the directory you copied them to earlier, and paste them
into C:\Windows\System32\Recovery\. Replace the file(s) if they already exists.

Write in CMD: reagentc /enable

Attempt to run a Windows Update again, and this time it should install the
KB5034441 update.
The nice thing is now that you have a portable solution to the problem. The next
machine you need to fix for this issue, you simply have to do the following:

Open CMD and write: reagentc /disable

Copy the two files to C:\Windows\System32\Recovery\

Write in CMD: reagentc /enable

Run Windows Update, and voila

The simplicity of this fix once you have the two files, makes it easy to implement
as a GPO or simple script that distributes these files to C:\Windows\System32\
Recovery\ and write the CMD commands.

I hope this guide will find its way and can be used by other system admins
desperately seeking to find a solution in this headless Windows world.

You might also like