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

2 comments:

  1. you made a VHD there and not a VHDX you only changed the extention Hyper-v will not see this as a VHDX File

    ReplyDelete
  2. Wim, you can look at the Result to see that a disk of type VHDX has been made

    ReplyDelete