I'm trying to convert a VHD to VHDX using the convert-vhd command but I get the following error:
The Hyper-V Management Tools could not access an expected WMI class on computer 'WINHIF3'. This may indicate that the Hyper-V Platform is not installed on the computer or that the version of the Hyper-V Platform is incompatible with these management tools.
I get the same error if I use the get-vhd command.
However, if I use the HyperV Manager GUI I can convert the disk to VHDX.
Running on Server 2016 with the RSAT HyperV Management tools and powershell modules install
Any ideas?
Or is there any other way to convert a VHD to VHDX via command line?
I had the same problem. Turns out in "Turn Windows features on or off" I'd only enabled "Hyper-V Management Tools". Once I added "Hyper-V Platform" (which required a reboot) it worked.