VHDX format was introduced with a lot of flexibility. The primary difference between VHDX and VHD is the storage limit. The standard storage limit of VHD is 2 TB, whereas VHDX has a storage limit of 64 TB. Although they do the same job, people can use them for different purposes. If you have a VHDX file and you want to make it compatible with some other program by converting it to VHD, you can use Windows PowerShell.
Convert VHDX file to VHD using PowerShell
To convert the Hyper-V VHDX file to VHD using Windows PowerShell, follow these steps. Note down the VHDX file’s location first. You cannot perform this task without the .vhdx file. Following that, you have to open the Windows PowerShell with administrator privilege. For that, press Win+X, and select Windows PowerShell (Admin). Execute the following command-
Do not forget to replace the
Convert VHDX file to VHD using PowerShell
If you have a VHD file and you want to convert it to VHDX, you can use the same command in Windows PowerShell. It is possible to choose between Dynamic and Fixed disk type. For that, it is recommended to use -VHDType Dynamic and -VHDType Fixed switches while converting the file. If you are not able to use this command or you are facing errors in Windows PowerShell, you need to enable Hyper-V and then use the command again.