How to Convert VMDK to VHDX with Dynamic using powershell

How to Convert VMDK to VHDX with Dynamic using powershell

Follow this steps :

  1. Download at http://www.microsoft.com/en-us/download/details.aspx?id=42497
  2. Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
  3. Get-Command -module mvmccmdlet
  4. ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "S:\vmwarevmdkfile\ADServer01.vmdk" -DestinationLiteralPath "C:\windowsvhdfile\" -VhdType DynamicHardDisk -VhdFormat Vhdx