https://github.com/x0nn/Convert-WindowsImage
set-executionpolicy unrestricted -force
. .\Convert-WindowsImage.ps1
Convert-WindowsImage -SourcePath "C:\Users\user\Downloads\Win10_20H2_v2_English_x64.iso" -VHDFormat "VHD" -Edition "Windows 10 Pro" -SizeBytes 60GB -DiskLayout "BIOS" -VHDPath "C:\Windows.10.Pro.x64.vhd"
Convert-WindowsImage -SourcePath "C:\temp\Win10_1909_English_x64.iso" -VHDFormat "VHD" -Edition "Windows 10 Pro" -SizeBytes 60GB -DiskLayout "BIOS" -VHDPath "C:\Windows.10.Pro.x64.vhd"
Convert-WindowsImage -SourcePath "C:\temp\Win10_1909_English_x32.iso" -VHDFormat "VHD" -Edition "Windows 10 Pro" -SizeBytes 15GB -DiskLayout "BIOS" -VHDPath "C:\Windows.10.Pro.x32.vhd"
Convert-WindowsImage -SourcePath "C:\temp\Win10_1903_V1_English_x64.iso" -VHDFormat "VHD" -Edition "Windows 10 Pro" -SizeBytes 50GB -DiskLayout "BIOS" -VHDPath "C:\Temp\Windows.10.Pro.vhd"
Convert-WindowsImage -SourcePath "C:\temp\Win10_1903_V1_English_x64.iso" -VHDFormat "VHDX" -Edition "Windows 10 Pro" -SizeBytes 20GB -DiskLayout "BIOS" -VHDPath "C:\Temp\Windows.10.Pro.vhdx"
Convert-WindowsImage -SourcePath "C:\temp\9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO" -VHDFormat "VHDX" -SKU 1 -SizeBytes 20GB -DiskLayout "BIOS" -VHDPath "C:\Temp\Windows.Server.2012.R2.Server.Core.Installation.vhdx"
Convert-WindowsImage -SourcePath "C:\temp\9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO" -VHDFormat "VHDX" -SKU 2 -SizeBytes 20GB -DiskLayout "BIOS" -VHDPath "C:\Temp\Windows Server.2012.R2.Standard.Evaluation.vhdx"
Convert-WindowsImage -SourcePath "C:\Temp\windowsServer2019.iso" -VHDFormat "VHDX" -Edition "Windows Server 2019 Standard" -SizeBytes 50GB -DiskLayout "UEFI" -VHDPath "C:\Temp\windowsServer2019.vhdx"
convert-windowsimage -ShowUI
Backup:
https://kernelmanic.com/2017/06/14/restore-vhd-image-diskpartition-linux-dd/
No comments:
Post a Comment