Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I really like the Hyper-V support in Windows 8, however, there are some situations in which I need to disable Hyper-V in order to run some apps which don't like to be executed even in the root partition of the virtualized environment.
What I've been currently doing is disabling the feature completely from the "Add or remove windows features" dialog and restarting, enabling it again when needed.
I would like to know if there's any better way to do this that comes to mind, it could even be a shortcut that i could double-click and will actually add or remove the feature for me and restart (I guess this may be possible with a PowerShell script).

share|improve this question
    
The method your using is the best and only supported method. –  Ramhound Jan 22 '13 at 17:29
1  
@Ramhound You can use dism.exe to enable features from the command line. That's how we automate installing .NET 3.5 on Windows 8, for example. In theory you can disable features that way too, but I haven't tried it. –  Mark Allen Jan 22 '13 at 20:05

4 Answers 4

up vote 23 down vote accepted

Disclaimer: I haven't done this for removing a feature, AND as a final caveat there's probably going to be a slew of Windows Update updates to install every time you enable it again.

Having said that, from an elevated command prompt:

dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

and

dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

Here's what running the enable command looks like on my PC, which already has Hyper-V enabled and running:

>dism /Online /enable-feature:Microsoft-Hyper-V /All

Deployment Image Servicing and Management tool Version: 6.2.9200.16384

Image Version: 6.2.9200.16384

Enabling feature(s) [==========================100.0%==========================] The operation completed successfully.

When enabling the feature since it's Hyper-V it might ask you to reboot and run the command again. That seems vaguely familiar. You could wind up having to reboot twice, in other words. But maybe it won't do it to you since that machine already had Hyper-V enabled before.

share|improve this answer
    
Thanks!, it worked like a charm. It did restart twice but I don't think there's a way past that. Also, it could be argued that its not that much of an improvement over going to the windows features screen but once left in the desktop or pinned to the start screen it surely is for lazy people like myself. –  Fredy Treboux Jan 24 '13 at 0:57
    
Sure! I'm glad it worked. Yeah normally the command line stuff is used to set up machines initially, so that way if you need to install .NET 3.5, AND Hyper-V, AND a bunch of other stuff, you can do it completely automatically. –  Mark Allen Jan 24 '13 at 4:21

This is an old answer but for the shake of completeness and because it managed to be the top g result while I knew there was a better way:

bcdedit /set hypervisorlaunchtype off

to disable hypervisor, and:

bcdedit /set hypervisorlaunchtype auto

to reenable it(default value). Of course it still requires restart.

share|improve this answer
    
This is the way to go if you develop windows phone apps on a microsoft surface pro 3 (so you need hyper-v), but you want connected standby to work whenever you're not actively developing (as of late 2014, connected standby is not supported when the hypervisor is running). –  Chris Nov 17 at 20:25

Hit the Windows Key and type “windows features” Hit the Windows Key + W combo to bring up the Windows Settings panel of the Start Screen. Click on Turn Windows features on or off When the Turn Windows features on or off dialog appears, look for Hyper-V and deselect it Click OK Restart your computer when prompted Install VMware Workstation Enable Hyper-V again through the Turn Windows features on or off dialog Restart your computer

share|improve this answer
    
I installed vs2013 in w8.1 and apparently it installed hyper v making my vbox not work. Thanks for a good permanent answer. –  MvcCmsJon Dec 14 '13 at 3:24

Powershell is also possible, using DISM wrapped as PS cmdlets, and one can read the settings first before doing the change. [1] //Test PowerShell> Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All //Turn off PowerShell> Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All //Turn on PowerShell> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All

Refs [1] Powershell seen in this 2014-03 post which summarizes all options, http://www.eightforums.com/tutorials/42041-hyper-v-enable-disable-windows-8-a.html ; MS Doc tell about the Get-WindowsOptionalFeature option, http://technet.microsoft.com/en-us/library/hh852173.aspx

[2]The Boot Entry Config Data edit (BECD) can also Read (/export) settings, per http://technet.microsoft.com/en-us/library/cc709667%28v=ws.10%29.aspx and other Doc http://msdn.microsoft.com/en-us/library/windows/hardware/ff542202%28v=vs.85%29.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.