In the last blog in my series on Windows 8 storage I already touched upon creating a VHDX with PowerShell 3.0 in Windows Server 8. In this blog I will focus on the subject a little bit more, showing the myriad ways of creating VHDs and show you some powerful commands to create multiple VHD files in Windows Server 8.
Here are a number of methods for creating a VHD:
-
WMI
-
Diskpart
-
Disk2VHD
-
VHD Tool
-
Disk Management
-
Hyper-V Manager
-
PowerShell 3.0
The WMI Method
Three years ago Taylor Brown in his blog “Hyper-V WMI Using PowerShell Scripts” demonstrated how we could create a VHD using a Hyper-V WMI method. Back then we did not have a Hyper-V PowerShell module as we now have in Windows 8. Borrowing from his work this is how we could accomplish our goal:



