> 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/command-reference/osdeploy/update-osdeploybootusb.md). Agents can also search and read this documentation through its [MCP server](https://www.osdeploy.com/~gitbook/mcp).

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.osdeploy.com/command-reference/osdeploy/update-osdeploybootusb.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
