Convert a VMDK (VMWare) file to VHDX (Hyper-V)

 
 
  • Gérald Barré

Microsoft provides a free tool to convert an existing virtual machine to a Hyper-V virtual machine: Microsoft Virtual Machine Converter.

This tool includes a graphical interface for the most common operations. However, in some scenarios (particularly in non-enterprise environments), you must use the supplied PowerShell cmdlet.

For example, the following script converts a virtual hard disk from VMDK (VMware) format to VHDX (Hyper-V) format:

PowerShell
Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'

$vmdk="sample.vmdk"
$vhdx="sample.vhdx"

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath $vmdk -DestinationLiteralPath $vhdx

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?