Update-OSDeployBootUSB
Updates an existing OSDeploy USB drive with new BootMedia from an OSDeployCore BootImage build.
Module
OSDeploy
Platform
Windows 11 (amd64 / arm64)
Requires
Valid license, Run as Administrator, a completed BootImage build, a USB drive previously created by New-OSDeployBootUSB
Description
Refreshes the BootMedia files on one or more existing OSDeploy USB drives without reformatting or repartitioning. The function:
Prompts for selection of a completed BootImage from
%ProgramData%\OSDeployCore\bootPrompts for the specific bootmedia folder (
bootmediaorbootmedia_ca2023)Locates all connected USB volumes whose label matches
-BootLabel(default:OSDEPLOY)Copies the selected media to each matching USB volume using
robocopyWrites a
BootMedia.jsonfile to each updated volume
No partitioning or formatting is performed. Use New-OSDeployBootUSB to create a new bootable USB drive.
Syntax
Update-OSDeployBootUSB [-BootLabel <String>] [-DataLabel <String>] [-WhatIf] [-Confirm]Parameters
-BootLabel
String
No
Volume label used to identify USB boot partitions to update. Max 11 characters. Default: OSDEPLOY.
-DataLabel
String
No
Volume label used to identify the USB data partition when copying ESD files. Max 32 characters. Default: OSDCloud.
Examples
Last updated
Was this helpful?

