To disable Hyper-V on Windows 11, you can follow these steps:

Using Control Panel

  1. Open Control Panel: Type "Control Panel" in the search bar and click on the Control Panel app icon.
  2. Navigate to Programs: Click on "Programs."
  3. Access Windows Features: Choose "Turn Windows features on or off."
  4. Uncheck Hyper-V: Scroll down and clear the checkbox next to "Hyper-V," and similarly remove the check from "Virtual Machine Platform."
  5. 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:

  1. 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.
  2. Use BCDEDIT command: In the terminal window, execute the following command to prevent Hyper-V from starting up at boot:
    bcdedit /set hypervisorlaunchtype off
    
    Then restart your computer.

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:

  1. Switch back to Powershell with administrative rights.
  2. Run the following command to disable Hyper-V net adapters:
    Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "*hyper-v*"} | Disable-NetAdapter
    
    Restart your system after executing the command.

Disabling Device Guard, Credential Guard, and Memory Isolation (Optional)

If you still encounter issues with other hypervisors, consider disabling these Hyper-V-related features:

  1. Open Registry Editor: Right-click on the Start button and choose "Run," then type "regedit" and press Enter, confirming the UAC prompt.
  2. 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.

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.