> 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/guide/basic/new-osdeploybootusb.md).

# Create an Boot USB

Create a two-partition OSDCloud USB drive from completed OSDeploy Boot media.

Use `New-OSDeployBootUSB` to prepare a USB disk from a completed OSDeploy Boot build. The function clears the selected disk, creates boot and data partitions, copies the selected WinPE media, and adds local OSDCloud content when it is available and fits.

{% hint style="info" %}
Use `Update-OSDeployBootUSB` when an existing OSDeploy USB drive only needs refreshed boot media or OSDCloud content and its partition layout does not need to change.
{% endhint %}

## Create the USB Drive

{% stepper %}
{% step %}

### Confirm the Requirements

Run the function on a workstation that meets these requirements:

* Windows 11 25H2 build 26200 or Windows 11 26H2 build 26300
* PowerShell 7.6 or later installed from the MSI package
* Current [OSDeploy module](https://www.osdeploy.com/guide/requirements/powershell-modules.md)
* Windows ADK `10.1.26100.2454` or `10.1.26100.9457`
* Administrator rights
* `curl.exe` available in `PATH`
* `Out-GridView` for selecting the build and media folder
* A completed [OSDeploy Boot](https://www.osdeploy.com/guide/basic/build-osdeployboot.md) build under `C:\ProgramData\OSDeployCore\boot`
* An online USB disk larger than 7 GB and smaller than 2000 GB

{% hint style="danger" %}
`New-OSDeployBootUSB` removes every partition and all data from the selected USB disk. Verify the disk number, model, and size before approving the clear operation. Use `Update-OSDeployBootUSB` when an existing OSDeploy USB only needs refreshed content.
{% endhint %}
{% endstep %}

{% step %}

### Create the Partitions and Copy the Media

Open an elevated PowerShell 7.6 session and run:

```powershell
New-OSDeployBootUSB
```

Select an eligible USB disk by number, choose a completed build, and select its `bootmedia` or `bootmedia_ca2023` directory. The default command uses this layout:

| Setting                | Default                                                   |
| ---------------------- | --------------------------------------------------------- |
| Partition style        | MBR                                                       |
| Boot partition         | 4 GB, FAT32, active                                       |
| Boot label             | `BOOT-AMD64` or `BOOT-ARM64`, based on the selected build |
| Data partition         | Remaining space, NTFS                                     |
| Data label             | `OSDCloud`                                                |
| Boot media             | Interactive selection                                     |
| Local OSDCloud content | Copy when present and space permits                       |

When `-BootLabel` is omitted, the function reads the selected build's architecture from `properties.json`. If that metadata is missing or invalid, the command stops before preparing the disk. Specify `-BootLabel` to use a custom label instead.

{% hint style="info" %}
The 4 GB FAT32 boot partition is fixed. Store larger local operating-system content on the NTFS data partition rather than expanding the boot partition.
{% endhint %}

The function lists eligible USB disks and prompts for a disk number. It then sets the machine-wide Explorer `NoDriveTypeAutorun` policy to `0xFF`, opens selectors for the completed build and `bootmedia` or `bootmedia_ca2023`, clears and converts the disk to MBR, creates both partitions, and copies the selected media. Local content under `C:\ProgramData\OSDeployCore\OSDCloud` is copied to the NTFS partition when it exists and available space is sufficient.

{% hint style="warning" %}
Missing or oversized local OSDCloud content does not prevent creation of the bootable USB. The function writes a message and leaves the NTFS data partition without that optional content.
{% endhint %}

{% hint style="warning" %}
`-WhatIf` does not provide a read-only preview. It still changes the machine-wide AutoRun policy, and an already empty RAW or GPT disk can be initialized or converted to MBR before partition creation is suppressed.
{% endhint %}
{% endstep %}
{% endstepper %}

For labels, selection rules, copy behavior, `WhatIf`, and returned objects, see [New-OSDeployBootUSB](https://www.osdeploy.com/guide/cmdlets/new-osdeploybootusb.md). To refresh prepared media without repartitioning, see [Update-OSDeployBootUSB](https://www.osdeploy.com/guide/cmdlets/update-osdeploybootusb.md). For compact syntax, see the [New-OSDeployBootUSB command reference](https://www.osdeploy.com/command-reference/osdeploy/new-osdeploybootusb.md) and [Update-OSDeployBootUSB command reference](https://www.osdeploy.com/command-reference/osdeploy/update-osdeploybootusb.md).


---

# 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/guide/basic/new-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.
