Hyper-ConvertImage
Hyper-ConvertImage copied to clipboard
Microsoft hasn't published any approved PRs on their Convert-WindowsImage module in years. This is a more recent version.
Hyper-ConvertImage
Microsoft hasn't published any approved PRs on their Convert-WindowsImage module in years. This is a more recent version.
How to use
Install the module
Install-Module Hyper-ConvertImage -Scope CurrentUser
Standard Windows Image Conversion
$params = @{
SourcePath = "C:\Path\To\Source.iso"
Edition = 1
VhdType = "Dynamic"
VhdFormat = "VHDX"
VhdPath = "C:\Path\To\output.vhdx"
DiskLayout = "UEFI"
SizeBytes = 127gb
}
Convert-WindowsImage @params
Windows Image Conversion w/ Unattend File
$params = @{
SourcePath = "C:\Path\To\Source.iso"
Edition = 1
VhdType = "Dynamic"
VhdFormat = "VHDX"
VhdPath = "C:\Path\To\output.vhdx"
DiskLayout = "UEFI"
SizeBytes = 127gb
UnattendPath = "C:\Path\To\Unattend.xml"
}
Convert-WindowsImage @params