{"id":876,"date":"2023-03-09T10:53:53","date_gmt":"2023-03-09T08:53:53","guid":{"rendered":"https:\/\/kalfaoglu.com\/wp\/?p=876"},"modified":"2023-03-09T10:53:53","modified_gmt":"2023-03-09T08:53:53","slug":"how-to-shutdown-a-windows-guest-vm-in-virtualbox","status":"publish","type":"post","link":"https:\/\/kalfaoglu.com\/wp\/how-to-shutdown-a-windows-guest-vm-in-virtualbox\/","title":{"rendered":"How to shutdown a windows guest VM in VirtualBox"},"content":{"rendered":"<p>If you have a guest Windows VM running, you can shut it from the host command line like this:<\/p>\n<pre><span style=\"font-family: verdana, geneva;\"># VBoxManage controlvm \"windows server 2012\" acpipowerbutton <\/span>\r\n\r\n<span style=\"font-family: verdana, geneva;\"># vboxmanage guestcontrol \"windows server 2012\" run \u00a0--exe \u00a0\"%SystemRoot%\\system32\\shutdown.exe\" \\ <\/span>\r\n<span style=\"font-family: verdana, geneva;\"> \u00a0--username Administrator \u00a0--password Abcd1234 \u00a0 -- shutdown.exe -s -f -t 0<\/span>\r\n\r\n<\/pre>\n<p>acpibutton does not always work, but the second one appears to work every time.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a guest Windows VM running, you can shut it from the host command line like this: # VBoxManage controlvm &#8220;windows server 2012&#8221; acpipowerbutton # vboxmanage guestcontrol &#8220;windows server 2012&#8221; run \u00a0&#8211;exe \u00a0&#8220;%SystemRoot%\\system32\\shutdown.exe&#8221; \\ \u00a0&#8211;username Administrator \u00a0&#8211;password Abcd1234 &hellip; <a href=\"https:\/\/kalfaoglu.com\/wp\/how-to-shutdown-a-windows-guest-vm-in-virtualbox\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-876","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/comments?post=876"}],"version-history":[{"count":1,"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/posts\/876\/revisions"}],"predecessor-version":[{"id":877,"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/posts\/876\/revisions\/877"}],"wp:attachment":[{"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/media?parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/categories?post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kalfaoglu.com\/wp\/wp-json\/wp\/v2\/tags?post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}