{"id":717,"date":"2019-04-27T10:00:43","date_gmt":"2019-04-27T08:00:43","guid":{"rendered":"http:\/\/wp.rimfalt.se\/?p=717"},"modified":"2019-04-27T10:14:35","modified_gmt":"2019-04-27T08:14:35","slug":"hyper-v-all-vms-gone-after-upgrade","status":"publish","type":"post","link":"https:\/\/wp.rimfalt.se\/?p=717","title":{"rendered":"Hyper-v .. .all VMs gone after upgrade"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">I had an issue after a inplace upgrade of a Hyper-v 2012R2 standard to 2016 Standard.<br>ALl VMs is missing and there is no errors in the eventlogg..<br>Running the below command fixed the issues and all vms reappeared in the MMC.<br>Havent had the time to real figureout what it does, <br>beyond that it has to do with WMI settings that gone corrupt.<br>  <br>\"The <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/wmisdk\/gloss-m\"><em>Managed Object Format (MOF)<\/em><\/a>  compiler parses a file containing MOF statements and<br>adds the classes and class instances defined in the fileto the WMI repository. <br>MOF files  are usually automatically compiled during the installation of the systems with<br>which they are provided, but you can also compile MOF files<br>by using this tool. \"<br> <br><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/wmisdk\/mofcomp\">https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/wmisdk\/mofcomp<\/a><br><br>FIX:<br>MOFCOMP %SYSTEMROOT%\\System32\\WindowsVirtualization.V2.mo <br><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/wmisdk\/mofcomp\"><\/a><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"136\" src=\"https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2019\/04\/MOFCOM.png\" alt=\"\" class=\"wp-image-720\" srcset=\"https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2019\/04\/MOFCOM.png 760w, https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2019\/04\/MOFCOM-300x54.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I had an issue after a inplace upgrade of a Hyper-v 2012R2 standard to 2016 Standard.ALl VMs is missing and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[144,1],"tags":[58,143,107,142],"class_list":["post-717","post","type-post","status-publish","format-standard","hentry","category-hyper-v","category-okategoriserade","tag-hyper-v","tag-inplaceupgrade","tag-troubleshooting","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=717"}],"version-history":[{"count":8,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/717\/revisions"}],"predecessor-version":[{"id":726,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/717\/revisions\/726"}],"wp:attachment":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}