> For the complete documentation index, see [llms.txt](https://osdeploy.gitbook.io/osdbuilder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osdeploy.gitbook.io/osdbuilder/module/functions/new-osdbuildervhd.md). Agents can also search and read this documentation through its [MCP server](https://osdeploy.gitbook.io/osdbuilder/~gitbook/mcp).

# New-OSDBuilderVHD

## Comment Based Help

```
<#
.SYNOPSIS
Creates an VHD of any OSMedia or OSBuild

.DESCRIPTION
Creates an VHD of any OSMedia or OSBuild

.LINK
https://osdbuilder.osdeploy.com/module/functions/new-osdbuildervhd

.PARAMETER FullName
Full Path of the OSDBuilder Media.  If omitted, GridView will prompt for selection

.PARAMETER OSDriveLabel
Drive Label for the OS Partition.  Default is OSDisk

.PARAMETER VHDSizeGB
Size of the VHD in GB.  Default is 50

.NOTES
Requested by Bruce Sa @BruceSaaaa and Alan Yousif @Green17Mr
Thanks to Bruce Sa for testing
Thanks to Mikael Nystrom for this post
https://deploymentbunny.com/2013/12/19/powershell-is-king-convert-wim-to-vhdvhdx-with-support-for-gen-1-and-gen-2-biosuefi-and-then-some/

#>
```
