KB ID: 5053484
Introduction
The PowerShell script described in this article can be used to update Windows bootable media so that the media can be used on systems that trust the “Windows UEFI CA 2023” certificate. This certificate is described in KB5025885: How to manage the Windows Boot Manager revocations for Secure Boot changes associated with CVE-2023-24932.How to get the PowerShell script
Description
The Make2023BootableMedia.ps1 PowerShell script updates boot manager support on Windows media to the boot manager signed by the new “Windows UEFI CA 2023” certificate. The input and output can be bootable media of the following type:- ISO CD/DVD image file,
- USB flash drive,
- a local drive path, or
- a network drive path.
Notes
- The Make2023BootableMedia.ps1 script should be run from an elevated PowerShell prompt.
- You must provide the script with a media source (-MediaPath) which has the latest servicing updates applied.
Syntax
PowerShell |
Make2023BootableMedia.ps1
|
Parameters
-MediaPath <path> | The path to the media folder or ISO file to be used as baseline. The media folder can be a local drive path or a network share. |
-TargetType <type> | The type of media to be created (ISO, USB, or LOCAL).
|
-ISOPath <path> | The path to the new ISO file to be created from -MediaPath. |
-USBDrive <drive:> | The drive letter to a target USB drive (example E:). |
-FileSystem <type> | This parameter is optional. It allows specifying the file system to format the USB drive with (FAT32 or ExFAT). The default is ExFAT. |
-NewMediaPath <path> | Required when TargetType is LOCAL. -MediaPath content is duplicated here and then updated. |
-StagingDir <path> | Overrides default temporary staging path used by this script. System %TEMP% is used by default with a random subfolder. |