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) K (Admin verschob die Seite Compare-VM (fix incompatibilities) nach Hyper-V: Compare-VM (fix incompatibilities), ohne dabei eine Weiterleitung anzulegen) |
||
(5 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt) | |||
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> | ||
== Incompatibilities == | == Incompatibilities == | ||
− | === Show | + | === Show all incompatibilities === |
<source lang="powershell">$VM.Incompatibilities </source> | <source lang="powershell">$VM.Incompatibilities </source> | ||
Zeile 17: | Zeile 20: | ||
− | More Information: https://www.altaro.com/hyper-v/using-compare-vm/ | + | ''More Information: https://www.altaro.com/hyper-v/using-compare-vm/'' |
Aktuelle Version vom 8. März 2019, 13:09 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 all 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/