Software & OS

bcdedit /set hypervisorlaunchtype off: What It Does and How to Undo

bcdedit /set hypervisorlaunchtype off tells Windows not to start the Hyper-V hypervisor at boot, so after a restart other virtualization software such as VirtualBox or VMware can use the processor's virtualization hardware. Run it in an administrator Command Prompt or PowerShell, restart, and undo it with bcdedit /set hypervisorlaunchtype auto.

bcdedit /set hypervisorlaunchtype off

The rest of this page explains what each part of the command means, how to confirm it worked, and what to check when Windows still reports a hypervisor. If you are deciding between this command, the Windows features dialog and the BIOS switch, how to disable virtualization compares all three.

What the command does, word by word

Microsoft documents the general form as bcdedit /set [{ID}] datatype value. Here is how your command maps onto it:

PartMeaning
bcdeditThe Boot Configuration Data Store Editor, which edits the store that controls how Windows boots.
/setSets a boot entry option to a value.
(no {ID})When you leave out the boot entry identifier, the command changes the current operating system boot entry.
hypervisorlaunchtypeThe option that controls the hypervisor launch options. Microsoft lists its values as Off and Auto.
offDo not launch the hypervisor at boot.

Nothing is uninstalled and no file is deleted. The change is a single value in the boot configuration, and it only matters at the next boot. Microsoft's BCDEdit page says that any change to a boot option requires a restart to take effect.

Why this command fixes VirtualBox and VMware errors

Microsoft's troubleshooting article explains the conflict. Many virtualization applications depend on hardware virtualization extensions, which most modern processors provide as Intel VT-x and AMD-V. Only one software component at a time can use that hardware, and virtualization applications cannot share it. While Hyper-V is running, third-party tools might not start virtual machines, or they might fall back to a slower, emulated mode. Microsoft says this behavior is by design.

Because the hypervisor is what holds the hardware, preventing it from starting at boot frees the hardware for the other tool. Microsoft's own documented workaround is to disable Hyper-V through the Windows features dialog, PowerShell or DISM. The bcdedit value is a quicker switch that reaches the same goal for the next boot without touching those features.

How to run it

  1. Open the Start menu, type cmd or PowerShell, right-click the result and choose Run as administrator. Microsoft states that administrative privileges are required to modify the boot configuration.
  2. Optionally record the current value first:
    bcdedit /enum
    Find the hypervisorlaunchtype line in the Windows Boot Loader section. If the line is absent, the value has not been set explicitly.
  3. Run the command:
    bcdedit /set hypervisorlaunchtype off
  4. Restart the PC. Use Restart, not Shut down.

Microsoft adds a note that before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot. Do not change those settings unless the command actually fails.

The PowerShell quoting rule

The command as written works in both shells because it has no boot entry ID. If you add one, PowerShell needs quotes. Microsoft's example uses "{current}" for the current entry:

bcdedit /set "{current}" hypervisorlaunchtype off

In Command Prompt the quotes are not required. The braces are part of the identifier, so do not drop them.

How to check that it worked

Two checks, both after the restart. First, read the value back:

bcdedit /enum

Example output, trimmed to the relevant line (your other lines will differ):

hypervisorlaunchtype    Off

Second, confirm that no hypervisor is actually running. Search for msinfo32.exe, open System Information and look in the details pane. If this line is present, a hypervisor is still active:

A hypervisor has been detected. Features required for Hyper-V will not be displayed.

The first check proves the setting was saved. The second proves the setting had the effect you wanted. They can disagree, as the next section shows.

How to undo it

Set the value back to Auto, the other value Microsoft documents, and restart:

bcdedit /set hypervisorlaunchtype auto

Microsoft also documents bcdedit /deletevalue [{ID}] datatype for removing a boot option you have set. Setting auto is the more direct way to say "start the hypervisor", and it is the form to use when you switch back and forth between Hyper-V work and another virtualization tool.

Things that need the Windows hypervisor will not work while the value is off. Hyper-V virtual machines are the obvious case. Switch back with auto before you rely on them. Features built on the hypervisor are covered in how to enable Virtual Machine Platform.

If Windows still reports a hypervisor after the restart

Setting hypervisorlaunchtype to off does not remove every reason for a hypervisor to run. Work through these in order:

  • Memory integrity or Credential Guard is on. Microsoft's troubleshooting article says some Windows security technologies depend on Hyper-V, including memory integrity (originally released as part of Device Guard) and Credential Guard, and that you should disable them too when you disable Hyper-V. It points to Intune, Group Policy or registry entries for that. Memory integrity is also the switch described in how to enable memory integrity in Windows 11. Turning it off lowers protection, so consider turning it back on when you finish.
  • You did not fully restart. Pick Restart from the Start menu. A cold shutdown with Fast startup enabled may not behave the same way.
  • The value did not stick. Run bcdedit /enum again. If it shows Auto, something reset it, such as a management policy on a work PC. Ask your administrator rather than fighting it.
  • The command ran against a different entry. Without an ID it edits the current boot entry. On a machine with several boot entries, run bcdedit /enum and use the identifier of the entry you actually boot into.
  • The virtualization software has its own problem. If System Information no longer shows the hypervisor line and VirtualBox or VMware still fails, the hypervisor is no longer the cause. Check that virtualization is enabled in the firmware, which enabling hardware virtualization in BIOS/UEFI walks through.

Off versus the other ways to disable Hyper-V

The three methods Microsoft lists for disabling Hyper-V (Control Panel, PowerShell, DISM) all disable the Hyper-V Hypervisor Windows feature, with the PowerShell form being Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor. The bcdedit route differs in what it changes: it leaves the feature installed and only controls whether the hypervisor launches. That makes it the simpler one to flip repeatedly, and the one to try first if you are not sure that Hyper-V is the cause. It does nothing about the dependent security features, which is why the check in System Information matters.

Because the command edits the boot configuration, treat it with the care Microsoft asks for. Its page cautions that changing some boot entry options could render a computer inoperable, and suggests the System Configuration utility (msconfig.exe) or Startup Settings as lower-risk alternatives for common boot options. The hypervisor launch option appears in Microsoft's BCDEdit /set reference, which is why this page uses bcdedit.

Frequently asked questions

Does bcdedit /set hypervisorlaunchtype off uninstall Hyper-V?
No. It changes one value in the boot configuration data store so the hypervisor does not start at boot. The Hyper-V Windows features stay installed, and setting the value back to Auto and restarting brings the hypervisor back.
Do I need to restart after running the command?
Yes. Microsoft's BCDEdit documentation states that any change to a boot option requires a restart to take effect. Choose Restart rather than Shut down, because a shutdown with Fast startup on may not reload the boot configuration.
Why does the command say the value was set but VirtualBox still complains?
Something else may be starting the hypervisor. Microsoft says memory integrity and Credential Guard depend on Hyper-V, so they have to be disabled as well. Check System Information for the line 'A hypervisor has been detected' after the restart.
Can this command make my PC unbootable?
Microsoft cautions that changing some boot entry options with BCDEdit could render a computer inoperable. This value is a simple Off or Auto switch and is easy to reverse, but you should still note the current setting first with bcdedit /enum.

Sources