Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 748 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 748 Bytes

Convert-WindowsImage

Creates a Windows VM for Hyper-V from a Windows-ISO

Examples

  1. Dotsource the script to load the functions . .\Convert-WindowsImage.ps1

  2. Create a Windows Server 2019 VM

Convert-WindowsImage -SourcePath "C:\Temp\windowsServer2019.iso" -VHDFormat "VHDX" -Edition "Windows Server 2019 Standard" -SizeBytes 50GB -DiskLayout "UEFI" -VHDPath "C:\Temp\windowsServer2019.vhdx"

Requirements

The script needs Powershell 5.1 on a Windows System with administrator rights. ISE is currently not supported

License

The code is licensed under the MIT licencse (X11) as per the original source this implementation is based upon. See LICENSE for details.