Hyperv - VHD Creating

This will create a 60GB dynamic disk(VHDX) file under C:\VHD\ called Mydrive.vhdx:

New-VHD -Dynamic C:\VHD\MyDrive.vhdx -SizeBytes 60GB

This will create a 5GB fixed size disk(VHDX) file under C:\VHD\ called FixedDisk.vhdx:

New-VHD -Fixed C:\VHD\FixedDisk.vhdx -SizeBytes 5GB

Sources:

  • http://blogs.technet.com/b/heyscriptingguy/archive/2013/06/07/powertip-create-a-new-vhd-with-windows-powershell.aspx