Microsoft has developed a sample PowerShell script that can help you automate updating the Windows Recovery Environment (WinRE) on deployed devices to address the security vulnerabilities in CVE-2024-20666.
The sample PowerShell script was developed by the Microsoft product team to help automate the updating of WinRE images on supported Windows 10 and Windows 11 devices. Run the script with Administrator credentials in PowerShell on the affected devices. There are two scripts available—which script you should use depends on the version of Windows you are running. Please use the appropriate version for your environment.
PatchWinREScript_2004plus.ps1 (Recommended)
This script is for Windows 10, version 2004 and later versions, including Windows 11.PatchWinREScript_General.ps1
This script is for Windows 10, version 1909 and earlier versions, but executes on all versions of Windows 10 and Windows 11…
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
KB5034957 : New script to fix KB5034441/KB5034440
Home » Forums » AskWoody support » Windows » Windows – other » KB5034957 : New script to fix KB5034441/KB5034440
- This topic has 9 replies, 10 voices, and was last updated 11 months, 1 week ago.
AuthorTopicAlex5723
AskWoody PlusMarch 4, 2024 at 3:28 am #2644858Viewing 8 reply threadsAuthorReplies-
Tex265
AskWoody PlusMarch 4, 2024 at 7:37 am #2644915@Alex5723 Thanks for the heads up.
@SB Susan Bradley, have you tested this? Opinion? Does this replace KB5034441?Also, since this change involves WinRE, would this change (if it works) affect existing Backup Program Rescue Disks such as Macrium Reflect?
Windows 10 Pro x64 v22H2 and Windows 7 Pro SP1 x64 (RIP) -
Susan Bradley
ManagerMarch 4, 2024 at 9:32 pm #2645272PowerShell and Windows home users should not be used in the same sentence.
You breaka my machine via windows update, you fixa my machine via windows update.
I still stand by my opinion that this update is NOT needed for home users. Aunt Mildred will hit any physical attacker over the head with a baseball bat first before he has a chance of attacker her nonexistent bitlocker protected pc.
Susan Bradley Patch Lady/Prudent patcher
4 users thanked author for this post.
-
-
Paul T
AskWoody MVPMarch 4, 2024 at 7:55 am #2644928Run the script with Administrator credentials in PowerShell
What a crock of ordure! How many users know how to do this, or even where to get such a script? It should be fixed in the patch and delivered to Windows per the usual update method.
cheers, Paul
9 users thanked author for this post.
-
Fred
AskWoody LoungerMarch 4, 2024 at 8:17 am #2644939Run the script with Administrator credentials in PowerShell
What a crock of ordure! How many users know how to do this, or even where to get such a script? It should be fixed in the patch and delivered to Windows per the usual update method.
cheers, Paul
So very right you are !
How to tell the lords of microsoft this?* _ ... _ * -
n0ads
AskWoody LoungerMarch 4, 2024 at 9:28 am #2644971This is not a new topic!
The availability of this script was mentioned by @Intrepid back on Jan 11 in post# 2623212 and the Jan 23 thread KB5034441 – I ran MS’s script also covers it.
Just FYI, I can personally vouch for the fact that it does work “if you follow all the instructions at the MS link“.
And while it doesn’t actually “replace” KB5034441 (i.e. it’ll keep showing up as a required update unless you hide it), it does update WinRE to the new version without needing to change anything about the current size of your Recovery Partition.
1 user thanked author for this post.
-
Alex5723
AskWoody PlusMarch 4, 2024 at 12:45 pm #2645078The availability of this script was mentioned by @Intrepid back on Jan 11 in post# 2623212 and the Jan 23 thread KB5034441 – I ran MS’s script also covers it.
These are new updated scripts. For example : replaces “BootMenuUx.dll ” with “winload.efi” and some more changes.
1 user thanked author for this post.
-
OldNavyGuy
Guest -
Graham
AskWoody PlusMarch 7, 2024 at 4:44 am #2646206For anyone who cares, I have downloaded and reformatted this script, and the previous version. It is a pain to download it in the first place, and the formatting is non-existent, making it very hard to see what it does, or what the difference are between the two versions. Once formatted, it is at least possible to see what it does (even if I don’t fully understand it.)
Attached is a diff file.
I can upload a formatted version of the actual patch if anyone wants it.
Edited to add that I have applied the first version of the patch to one system with no ill-effects.
-
EP
AskWoody_MVPMarch 8, 2024 at 11:41 am #2646661eh I think I’ll follow Susan’s recent advice from here and skip this script altogether and hide/block the KB5034440/KB5034441 updates until Microsoft stops offering these problematic updates
Microsoft released a new script for the KB5034441/KB5034440 issues. My take? Skip it. I still recommend hiding the offending update and not installing it on consumer Windows machines.
-
krcportero
AskWoody PlusJune 18, 2024 at 3:59 pm #2681748This one actually worked like a champ for me.
https://www.yourwindowsguide.com/2024/02/fix-error-0x80070643-for-windows-10-kb5034441-update.html
1 user thanked author for this post.
Viewing 8 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Built for Impact. Z7 Neck Bracket Is Changing the Game in Sports Safety (Awaiting moderation)
by
lachlanlaplante
27 minutes ago -
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
3 hours, 16 minutes ago -
How well does your browser block trackers?
by
n0ads
1 minute ago -
You can’t handle me
by
Susan Bradley
44 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
1 hour, 33 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
14 hours, 39 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
2 hours, 12 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
15 hours, 3 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
15 hours, 8 minutes ago -
Lumma malware takedown
by
EyesOnWindows
3 hours, 23 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
23 hours, 56 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
23 hours, 50 minutes ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 3 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 4 hours ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 12 hours ago -
Do you have a maintenance window?
by
Susan Bradley
38 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
14 hours, 15 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 15 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
4 hours, 13 minutes ago -
hibernate activation
by
e_belmont
2 days ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 4 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 7 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 7 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 3 hours ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 11 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 18 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 days, 2 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
22 hours, 15 minutes ago -
Auto Time Zone Adjustment
by
wadeer
3 days, 6 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 days, 4 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.