Hyper-V: Compare-VM (fix incompatibilities): Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „ == Viewing VM-Configuration only with VMCX-File (Load it in a Variable) == <source lang="powershell">$vm = compare-vm "<Path_to_the_VMConfiguration-File.vmcx>…“)
 
K (Admin verschob die Seite Compare-VM (fix incompatibilities) nach Hyper-V: Compare-VM (fix incompatibilities), ohne dabei eine Weiterleitung anzulegen)
 
(6 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 the Incompatibilities ===
+
=== 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

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/