Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.3 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.3 KB

Hyper-ConvertImage

PowerShell Gallery PSGallery Downloads

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