> For the complete documentation index, see [llms.txt](https://www.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.osdeploy.com/powershell-modules/osdeploy/update-osdeploybootusb.md).

# Update-OSDeployBootUSB

Updates an existing OSDeploy USB drive with new BootMedia from an OSDeployCore BootImage build.

| Property | Value                                                                                                      |
| -------- | ---------------------------------------------------------------------------------------------------------- |
| Module   | OSDeploy                                                                                                   |
| Platform | Windows 11 (amd64 / arm64)                                                                                 |
| Requires | 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\boot`
* Prompts for the specific bootmedia folder (`bootmedia` or `bootmedia_ca2023`)
* Locates all connected USB volumes whose label matches `-BootLabel` (default: `OSDEPLOY`)
* Copies the selected media to each matching USB volume using `robocopy`
* Writes a `BootMedia.json` file to each updated volume

No partitioning or formatting is performed. Use `New-OSDeployBootUSB` to create a new bootable USB drive.

## Syntax

```powershell
Update-OSDeployBootUSB [-BootLabel <String>] [-DataLabel <String>] [-WhatIf] [-Confirm]
```

## Parameters

| Parameter    | Type     | Required | Description                                                                                                          |
| ------------ | -------- | -------- | -------------------------------------------------------------------------------------------------------------------- |
| `-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

```powershell
# Update all connected USB volumes labeled 'OSDEPLOY'
Update-OSDeployBootUSB
```

```powershell
# Update all connected USB volumes labeled 'WinPE'
Update-OSDeployBootUSB -BootLabel 'WinPE'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.osdeploy.com/powershell-modules/osdeploy/update-osdeploybootusb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
