{"id":2725,"date":"2013-10-15T11:59:00","date_gmt":"2013-10-15T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/10\/15\/powertip-identify-configuration-changes-for-hyper-v-virtual-machines\/"},"modified":"2013-10-15T11:59:00","modified_gmt":"2013-10-15T11:59:00","slug":"powertip-identify-configuration-changes-for-hyper-v-virtual-machines","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-identify-configuration-changes-for-hyper-v-virtual-machines\/","title":{"rendered":"PowerTip: Identify Configuration Changes for Hyper-V Virtual Machines"},"content":{"rendered":"<p><strong>Summary<\/strong>: Use Hyper-V cmdlets in Windows Server&nbsp;2012 to identify what a virtual machine needs.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;Is there a way to use Windows PowerShell to easily find why I can&rsquo;t import virtual machine configurations when I perform a disaster recovery test on a Hyper-V Server?<\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;Use&nbsp;<strong>Compare-VM<\/strong>, target the .xml file with the configuration data, <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and then examine the&nbsp;<strong>Incompatibilities<\/strong>&nbsp;property in the output:<\/p>\n<p style=\"padding-left: 120px\">$TEST=COMPARE-VM &ndash;path C:\\VM\\\\B0F4430E-6EC9-46DD-B4DD-E7EF8C5A1FC8.xml<\/p>\n<p style=\"padding-left: 120px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/6545.PT1.png\"><img decoding=\"async\" title=\"Image of command output\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/6545.PT1.png\" alt=\"Image of command output\" \/><\/a><\/p>\n<p style=\"padding-left: 120px\">$TEST.Incompatibilities<\/p>\n<p style=\"padding-left: 120px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7215.PT2.png\"><img decoding=\"async\" title=\"Image of command output\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7215.PT2.png\" alt=\"Image of command output\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Use Hyper-V cmdlets in Windows Server&nbsp;2012 to identify what a virtual machine needs. &nbsp;Is there a way to use Windows PowerShell to easily find why I can&rsquo;t import virtual machine configurations when I perform a disaster recovery test on a Hyper-V Server? &nbsp;Use&nbsp;Compare-VM, target the .xml file with the configuration data, &nbsp; &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[271,356,154,45],"class_list":["post-2725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-hyper-v","tag-powertip","tag-sean-kearney","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Use Hyper-V cmdlets in Windows Server&nbsp;2012 to identify what a virtual machine needs. &nbsp;Is there a way to use Windows PowerShell to easily find why I can&rsquo;t import virtual machine configurations when I perform a disaster recovery test on a Hyper-V Server? &nbsp;Use&nbsp;Compare-VM, target the .xml file with the configuration data, &nbsp; &nbsp; &nbsp; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=2725"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2725\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=2725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=2725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=2725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}