October 15th, 2013

PowerTip: Identify Configuration Changes for Hyper-V Virtual Machines

Doctor Scripto
Scripter

Summary: Use Hyper-V cmdlets in Windows Server 2012 to identify what a virtual machine needs.

Hey, Scripting Guy! Question Is there a way to use Windows PowerShell to easily find why I can’t import virtual machine configurations when I perform a disaster recovery test on a Hyper-V Server?

Hey, Scripting Guy! Answer Use Compare-VM, target the .xml file with the configuration data,
          and then examine the Incompatibilities property in the output:

$TEST=COMPARE-VM –path C:\VM\\B0F4430E-6EC9-46DD-B4DD-E7EF8C5A1FC8.xml

Image of command output

$TEST.Incompatibilities

Image of command output

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.