Skip to main content

KB5034957 - CVE-2024-20666 - Updating the WinRE partition

Summary

This script automates the updating of WinRE images on supported Windows operating systems. It updates the WinRE partition on deployed devices to address security vulnerabilities in CVE-2024-20666.

Refer to the article:
Updating the WinRE Partition on Deployed Devices to Address Security Vulnerabilities in CVE-2024-20666

Supported OS:

Supported OS

Sample Run

Sample Run

Dependencies

SWM - Agnostic - KB5034957 - CVE-2024-20666 - Updating the WinRE partition

Global Parameters

NameDefaultRequiredDescription
EnableTicketing1False1/0 to toggle between ticket creation for failures while being used as an autofix.
FailureEmail0False1/0 to Opt-In/Opt-Out Emails for failures while being used as an autofix.
SuccessEmail0False1 to receive the success emails as well, and 0 to ignore. Only usable when FailureEmail is set to 1.
EmailAddressesTrue(Only if FailureEmail = 1) Email Address(es) to send the failures. Multiple emails must be separated by a semicolon. e.g., abc@def.com; ghi@jkl.com; mno@pqr.com

EDF

NameLevelTypeRequiredDescription
Update WinRE Partition KB5034957ComputerTextTrueIt stores the updated result once the script runs successfully on the computer

Process

  1. Import the script.
  2. Execute the script.
  3. With the device started up into the running version of Windows installed on the device, the script will perform the following steps:
    • Mount the existing WinRE image (WINRE.WIM).
    • Update the WinRE image with the specified Safe OS Dynamic Update (Compatibility Update) package available from the Windows Update Catalog. We recommend that you use the latest Safe OS Dynamic Update available for the version of Windows installed on the device.
    • Unmount the WinRE image.
    • If the BitLocker TPM protector is present, reconfigure WinRE for BitLocker service.

Output

  • Script Log
  • Dataview