Hyper-V: Compare-VM (fix incompatibilities): Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) K (Admin verschob die Seite Compare-Vm nach Compare-VM, ohne dabei eine Weiterleitung anzulegen) |
Admin (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
== Viewing VM-Configuration only with VMCX-File (Load it in a Variable) == | == Viewing VM-Configuration only with VMCX-File (Load it in a Variable) == | ||
− | <source lang="powershell">$vm = compare-vm "<Path_to_the_VMConfiguration-File.vmcx>" -Register </source> | + | <source lang="powershell"> |
+ | $vm = compare-vm "<Path_to_the_VMConfiguration-File.vmcx>" -Register | ||
+ | $vm.vm.HardDrives | ||
+ | </source> | ||
Version vom 8. März 2019, 13:07 Uhr
Inhaltsverzeichnis
Viewing VM-Configuration only with VMCX-File (Load it in a Variable)
$vm = compare-vm "<Path_to_the_VMConfiguration-File.vmcx>" -Register $vm.vm.HardDrives
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/