To disable Hyper-V on Windows 11, you can follow these steps:
Using Control Panel
- Open Control Panel: Type "Control Panel" in the search bar and click on the Control Panel app icon.
- Navigate to Programs: Click on "Programs."
- Access Windows Features: Choose "Turn Windows features on or off."
- Uncheck Hyper-V: Scroll down and clear the checkbox next to "Hyper-V," and similarly remove the check from "Virtual Machine Platform."
- Confirm Changes & Restart: Click "OK" and then restart your computer for the changes to take effect.
Using Command Prompt or Powershell
For a quicker approach without uninstalling Hyper-V entirely, use either Command Prompt or Powershell with administrative rights:
- Open Command Prompt with Administrator Privileges: Right-click on the Windows button and select "Terminal" (or "Command Prompt" if using Command Prompt), then confirm the UAC prompt.
- Use
BCDEDIT
command: In the terminal window, execute the following command to prevent Hyper-V from starting up at boot:
Then restart your computer.bcdedit /set hypervisorlaunchtype off
Alternatively, you can use the following commands:
- For Powershell:
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
- For Command Prompt with DISM:
dism /online /disable-feature /featurename:microsoft-hyper-v-all
Restart your system after executing any of these commands.
Disabling Hyper-V Net Adapters
If Windows rolls back the changes during the restart, you may need to disable Hyper-V net adapters:
- Switch back to Powershell with administrative rights.
- Run the following command to disable Hyper-V net adapters:
Restart your system after executing the command.Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "*hyper-v*"} | Disable-NetAdapter
Disabling Device Guard, Credential Guard, and Memory Isolation (Optional)
If you still encounter issues with other hypervisors, consider disabling these Hyper-V-related features:
- Open Registry Editor: Right-click on the Start button and choose "Run," then type "regedit" and press Enter, confirming the UAC prompt.
- Navigate to the following locations and create DWORD (32-bit) Values as described:
- Device Guard:
- Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard
- Create a new DWORD Value named "EnableVirtualizationBasedSecurity" and set its value data to 0.
- Credential Guard:
- Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
- Create a new DWORD Value named "LsaCfgFlags" and set its value data to 0x00000000.
- Memory Integrity (requires Windows 11 Pro or Enterprise):
- Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard
- Create a new DWORD Value named "EnableMemoryIntegrity" and set its value data to 0.
- Device Guard:
Restart your computer for the changes to take effect.
Remember to be cautious when modifying the Windows Registry, as incorrect changes can lead to serious problems. Always create a system restore point or backup your registry before making changes.