{"id":16899,"date":"2014-07-31T10:55:00","date_gmt":"2014-07-31T10:55:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=16899"},"modified":"2014-07-31T10:55:00","modified_gmt":"2014-07-31T10:55:00","slug":"kb2989384-hyper-v-best-practice-analyzer-bpa-does-not-close","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=16899","title":{"rendered":"KB2989384 &#8211; Hyper-V Best Practice Analyzer (BPA) Does Not Close"},"content":{"rendered":"<p>Microsoft published a <a href=\"http:\/\/support.microsoft.com\/kb\/2989384\" target=\"_blank\">KB article<\/a> to help you when the Hyper-V Best Practice Analyzer (BPA) does not exit or appears to hang\/crash.<\/p>\n<blockquote>\n<p><strong><u>Symptoms<\/u><\/strong><\/p>\n<p>Hyper-V Best Practice Analyzer (BPA) does not exit under the following conditions:<\/p>\n<ul>\n<li>A virtual machine already exists. <\/li>\n<li>The virtual machine is connected to a vhd or vhdx as the hard disk drive. However, the vhd or vhdx file itself is renamed or deleted, and does not exist in reality.<\/li>\n<\/ul>\n<p><strong><u>Cause<\/u><\/strong><\/p>\n<p>The PowerShell script as seen here runs internally when running the Hyper-V BPA:<\/p>\n<p><em>C:\\Windows\\System32\\BestPractices\\v1.0\\Models\\Microsoft\\Windows\\Hyper-V\\Hyper-V.ps1<\/em><\/p>\n<p>However, due to a defect in the script, the information retrieval process goes into a loop, and the BPA does not exit until timeout.<\/p>\n<p><strong><u>Workaround<\/u><\/strong><\/p>\n<p>You need to delete the non-existing vhd or vhdx from the virtual machine settings, and then rerun BPA for Hyper-V by following these steps:<\/p>\n<ol>\n<li>Start Hyper-V Manager. <\/li>\n<li>Select the virtual machine that is connected to a non-existing vhd or vhdx, then right-click and open <b><strong>Settings<\/strong>.<\/b><\/li>\n<li>From the virtual machine settings window, click on the non-existing hard drive, and then click <strong>Delete<\/strong>. <\/li>\n<li>Click <b><strong>OK<\/strong><\/b> to close the virtual machine setting window. <\/li>\n<li>Rerun BPA for Hyper-V from <b><strong>Server Manager<\/strong><\/b>.<\/li>\n<\/ol>\n<\/blockquote>\n<p>The article claims to apply to <a href=\"https:\/\/aidanfinn.com\/?s=Windows+Server\" target=\"_blank\">Windows Server<\/a> 2012 (WS2012).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft published a KB article to help you when the Hyper-V Best Practice Analyzer (BPA) does not exit or appears to hang\/crash. Symptoms Hyper-V Best Practice Analyzer (BPA) does not exit under the following conditions: A virtual machine already exists. The virtual machine is connected to a vhd or vhdx as the hard disk drive. &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=16899\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;KB2989384 &#8211; Hyper-V Best Practice Analyzer (BPA) Does Not Close&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,99,195,118],"class_list":["post-16899","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-storage","tag-virtualisation","tag-windows-server-2012"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/16899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16899"}],"version-history":[{"count":1,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/16899\/revisions"}],"predecessor-version":[{"id":16900,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/16899\/revisions\/16900"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}