Converting a VHDX to VHD with PowerShell

I was recently asked about converting Hyper-V VHDX volumes to VHD. Here’s a quick and dirty post about the conversion process.

Start an Administrator PowerShell session and do the following:

Install Hyper-V and the Hyper-V Management Tools

Note: This will require a system reboot.

Windows 10

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

Use Convert-VHD

Installing the Hyper-V Management tools added the Convert-VHD cmdlet to the system. Below are examples of how to use Convert-VHD for volume conversion.

Example 1: Convert example.vhdx to example-converted.vhd

Convert-VHD example.vhdx -VHDFormat VHD -DestinationPath C:\mpwd\example.vhd

Example 2: Convert example.vhd to example-converted.vhdx

Convert-VHD example.vhd -VHDFormat VHDX -DestinationPath C:\mpwd\example.vhdx
Converting a VHDX to VHD with PowerShell