Thursday, April 4, 2013

How to Create Fixed Disk in VHDX using PowerShell

I’m going to share with you on how you can create the VHDX with Fixed Disk using PowerShell.  It’s fun and fast.

Firstly launch the PowerShell (running as Administrator)

Key in the following command :

New-VHD –Path “C:\ClusterStorage\Volume1\ServerVM\Virtual Hard Disks\ServerVMDisk2.vhdx” –size 50GB –Fixed

note : make changes in the yellow highlighted in your environment.  Please include the quotes “  ”.  As for the size, make the change accordingly in BLUE colour in the command above.

image

Can see the progress and wait (it’s much faster compared to GUI)

image

The Result as :

image

Hope the above steps help.

keynote : create fix disk , create fixed disk, create vhdx fix disk using powershell, PowerShell command, Hyper-V creating fix disk using powershell