Hyper-V: Compare-VM (fix incompatibilities)

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche

Viewing VM-Configuration only with VMCX-File (Load it in a Variable)

$vm = compare-vm "<Path_to_the_VMConfiguration-File.vmcx>" -Register


Incompatibilities

Show the Incompatibilities

$VM.Incompatibilities

Remove the incompatibilities (for example the Harddiskdrive)

$VM.Incompatibilities[0].Source | Remove-VMHardDiskDrive

Import the VM without incompatibilities (removed incompatibilities)

Import-VM -CompatibilityReport $vm



More Information: https://www.altaro.com/hyper-v/using-compare-vm/