{"id":46,"date":"2015-05-18T21:13:04","date_gmt":"2015-05-18T21:13:04","guid":{"rendered":"http:\/\/michaelstoica.com\/?p=46"},"modified":"2015-05-18T21:13:04","modified_gmt":"2015-05-18T21:13:04","slug":"how-to-remove-a-temporary-template-from-system-center-virtual-machine-manager-2012-r2","status":"publish","type":"post","link":"https:\/\/michaelstoica.com\/site\/how-to-remove-a-temporary-template-from-system-center-virtual-machine-manager-2012-r2\/","title":{"rendered":"How to remove a temporary template from System Center Virtual Machine Manager 2012 R2"},"content":{"rendered":"<p>These days I wanted to remove some templates from the VMM Library when I got this error that I cannot delete the VHD from the template because of some dependency called Temporary Template followed by a &lt;GUID&gt; (forgot to take a screen shot).<\/p>\n<p>So, I said that maybe deleting the folder directly \u00a0from the Library Server would work, but it doesn&#8217;t, the VM template is still there with an warning sign even after refreshing the Library or waiting for a manual cleaning from VMM. I started to look on internet for a solution about this issue, and most of them were pointing somehow in a wrong direction.<\/p>\n<p>In the end it worked only using the Powershell command\u00a0<em>Remove-SCVMTemplate -VMTemplate &#8220;Temporary Template&lt;GUID&gt;&#8221;\u00a0<\/em>without any need to make any change on the SQL server or stuff like that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These days I wanted to remove some templates from the VMM Library when I got this error that I cannot delete the VHD from the&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/michaelstoica.com\/site\/how-to-remove-a-temporary-template-from-system-center-virtual-machine-manager-2012-r2\/\">Continue reading<span class=\"screen-reader-text\">How to remove a temporary template from System Center Virtual Machine Manager 2012 R2<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[15,17,8,16],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-general","tag-hyper-v","tag-microsoft","tag-virtualization","tag-vmm","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63Lge-K","_links":{"self":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":1,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}