How to enable or disable Hyper-V in Windows 11

How to enable or disable Hyper-V in Windows 11

Windows has support for the Hyper-V virtualization platform for creating and using virtual machines.

 

By default, this feature is only available in the Pro and Enterprise editions, but it can also be installed on Windows 11 Home.

Virtualization support is required for virtual machines to run. A quick way to check is to open Task Manager and go to the “Performance” tab and select “CPU”.

If you see “Virtualization” under “Enabled”, all is well. Otherwise, you will need to enable virtualization in BIOS/UEFI

 

How to install Hyper-V:

  • Right-click on Start, select Run, type (appwiz.cpl) and press Enter.
  • In the window that opens, click “Activate or deactivate Windows features”.
  • In the list of components, tick Hyper-V.
  • Press “OK” and wait for installation to complete.
  How to find AppData folder windows 11

 

Hyper-V in Windows 11 Home

You need to create a bat file with the following code and run it as Administrator:

pushd “%~dp0″ dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt for /f %%i in (‘findstr /i . hv.txt 2^>nul’) do dism /online /norestart /add-package:”%SystemRoot%\servicing\Packages\%%i” del hv.txt Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL pause

 

How to delete Hyper-V:

  • Press Win+R and type (appwiz.cpl) and press Enter.
  • Click on “Enable or disable Windows components” on the left-hand side.
  • Uncheck Hyper-V and click OK.
  • Wait for uninstallation and reboot the PC.

 

How to disable Hyper-V:

  • Run the command line as Administrator.
  • Enter the command (bcdedit /set hypervisorlaunchtype off).
  • Reboot the computer.
  How to open Disk Management in Windows 11

How to enable Hyper-V:

  • Run the command line as Administrator.
  • Enter the command (bcdedit /set hypervisorlaunchtype auto).
  • Reboot the computer.