{"id":255,"date":"2017-11-15T18:20:37","date_gmt":"2017-11-15T18:20:37","guid":{"rendered":"http:\/\/blog.electrongoo.com\/?p=255"},"modified":"2017-11-15T18:29:01","modified_gmt":"2017-11-15T18:29:01","slug":"enable-and-disable-hyper-v-service-on-windows","status":"publish","type":"post","link":"http:\/\/blog.electrongoo.com\/index.php\/enable-and-disable-hyper-v-service-on-windows\/","title":{"rendered":"Enable and disable hyper-V service on Windows"},"content":{"rendered":"<p>Both Hyper-V and Virtual Box are excellent virtualization tools.\u00a0 Unfortunately, they compete for the BIOS virtualization feature.\u00a0 I&#8217;ve been using the HoloLens emulator recently which requires Hyper-V.<\/p>\n<p>I created some simple batch files to easily enable\/disable Hyper-V as I move to\/from the HoloLens emulator.\u00a0 Create two new files\u00a0 (add the contents specified below)\u00a0, right-click and run as Administrator, a\u00a0 reboot is required.<\/p>\n<p>hyperv-enable.bat<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n@echo off\r\necho &quot;NOTE: you must run this script at administrator level&quot;\r\nbcdedit \/set hypervisorlaunchtype auto\r\necho &quot;press enter to reboot ...&quot;\r\npause\r\nshutdown \/r\r\n<\/pre>\n<p>hyperv-disable.bat<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n@echo off\r\necho &quot;NOTE: you must run this script at administrator level&quot;\r\nbcdedit \/set hypervisorlaunchtype off\r\necho &quot;press enter to reboot ...&quot;\r\npause\r\nshutdown \/r\r\n<\/pre>\n<p>to switch hyper-V on\/off simply right-click on the bat file and select &#8216;run as administrator&#8217; &#8230; after a reboot, the hyper-V service\u00a0will be updated.<\/p>\n<p><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2017\/11\/hyperv-config.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-258\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2017\/11\/hyperv-config.png\" alt=\"\" width=\"277\" height=\"138\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Both Hyper-V and Virtual Box are excellent virtualization tools.\u00a0 Unfortunately, they compete for the BIOS virtualization feature.\u00a0 I&#8217;ve been using the HoloLens emulator recently which requires Hyper-V. I created some simple batch files to easily enable\/disable Hyper-V as I move to\/from the HoloLens emulator.\u00a0 Create two new files\u00a0 (add the contents specified below)\u00a0, right-click and &hellip; <a href=\"http:\/\/blog.electrongoo.com\/index.php\/enable-and-disable-hyper-v-service-on-windows\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Enable and disable hyper-V service on Windows<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts\/255"}],"collection":[{"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":3,"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":262,"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts\/255\/revisions\/262"}],"wp:attachment":[{"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}