Freigeben über


Easily Create VHD and VHDX Files…

Have you had the need to “Easily” create a VHD or VHDX File for use with PDT, VMM etc.?  Well me too and it turns out there is a super useful tool for this when you don't want or have the need to do this via MDT or ConfigMgr. 

https://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f

Convert-WindowsImage is the new version of WIM2VHD designed specifically for Windows 8 and above. Written in PowerShell, this command-line tool allows you to rapidly create sysprepped VHD and VHDX images from setup media for Windows 7/Server 2008 R2, Windows 8/8.1/Server 2012/R2!

Surprisingly easy to do when you simply need a VHDX file to demo etc…  Below is a sample command to create a Windows Server 2012 R2 Standard Generation 2 VHDX File.

.\Convert-WindowsImage.ps1 -SourcePath D:\en_windows_server_2012_r2_x64.iso -VHDPath D:\WS12R2SG2.vhdx -SizeBytes 72GB -VHDFormat vhdx -VHDType Dynamic -VHDPartitionStyle GPT -Edition ServerStandard -UnattendPath D:\Server2012R2_Unattend.xml

Additionally if you don't fancy the command line there is a GUI shown below:

NOTE: GUI has a limited feature set to unlock all features jump back to the command line.

.\Convert-WindowsImage.ps1 –ShowUI

image

Disclaimer: The information on this site is provided "AS IS" with no warranties, confers no rights, and is not supported by the authors or Microsoft Corporation. Use of included script samples are subject to the terms specified
in the
Terms of Use .