{"id":1800,"date":"2026-03-02T12:41:21","date_gmt":"2026-03-02T18:41:21","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1800"},"modified":"2026-03-02T12:41:21","modified_gmt":"2026-03-02T18:41:21","slug":"force-kill-a-hyper-v-vm","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2026\/03\/02\/force-kill-a-hyper-v-vm\/","title":{"rendered":"Force Kill a Hyper-V VM"},"content":{"rendered":"<p>So I tried to Turn Off a Hyper-v VM using Hyper-v Manager tool, and it would just error stating it couldn&#8217;t do it in the state of the VM. It was in a live linux shutdown state and not doing anything.<\/p>\n<p>So I opened PowerShell as an admin and ran this:<\/p>\n<pre>Stop-Process (Get-Process vmwp | ?{(Get-CimInstance Win32_Process -Filter \"ProcessId=$($_.Id)\").CommandLine -match (Get-VM 'Ubi').id.guid}).Id -Force<\/pre>\n<p>Change the VM name in the Get-VM command. That&#8217;s it I noticed it blipped in the Hyper-V manager but wasn&#8217;t shutdown, I simply selected turn off and this time the VM finally turned off. Hope this one-liner helps someone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I tried to Turn Off a Hyper-v VM using Hyper-v Manager tool, and it would just error stating it couldn&#8217;t do it in the state of the VM. It was in a live linux shutdown state and not doing anything. So I opened PowerShell as an admin and ran this: Stop-Process (Get-Process vmwp | &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2026\/03\/02\/force-kill-a-hyper-v-vm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Force Kill a Hyper-V VM&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[5,12,8],"tags":[497,485,496],"class_list":["post-1800","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-powershell","category-server-administration","tag-frozen-vm","tag-hyper-v","tag-stuck-vm"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1800"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1800\/revisions"}],"predecessor-version":[{"id":1801,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1800\/revisions\/1801"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}