Skip to content

Instantly share code, notes, and snippets.

@HimDek
Last active September 15, 2024 20:10
Show Gist options
  • Save HimDek/6edde284203a620745fad3f762be603b to your computer and use it in GitHub Desktop.
Save HimDek/6edde284203a620745fad3f762be603b to your computer and use it in GitHub Desktop.
Hyper-V is supported in Pro, Enterprise and Education Edition of Windows 10 and Windows 11. This guide will show you how to enable Hyper-V in Home Editions of Windows 10 and Windows 11.

Hyper-V in Windows 10 and Windows 11 Home Edition

Hyper-V in Windows 10 and Windows 11 allows running Virtual Machine. It is supported only in Pro, Enterprise and Education Edition of Windows 10 and Windows 11 by default. But this guide will show you how to enable it in Home Editions of Windows 10 and Windows 11.

Check if virtualization is enabled:

  • Search for Command Prompt in Windows Start Menu and open it.
  • Type systeminfo and press Enter. Wait for the process to finish
  • Once the results appear, search for the Hyper-V Requirements section which is usually the last one. 11
    • If it says A hypervisor has been detected. Features required for Hyper-V will not be displayed. that means Hyper-V is already enabled and there is no reason following this guide anymore.
    • Otherwise, check for Virtualization Enabled in Firmware:.

Enable virtualization

The process of enabling virtualization can vary a lot depending on the motherboard manufacturer, but it can be summarized in a few steps:

  • Completely Shutdown you Computer.
  • Turn on the computer and while it is booting up, keep pressing the key to open the BIOS (usually it is Del, F1, F2, F4, F11, or F12). This key depends on the Motherboard manufacturer. You can easily google it out.
  • Once you get into the BIOS, it may look very scary or intimidating, but don't worry, you will get it right. Mouse may not work in BIOS so you might have to use the Directional or Arrow keys and the Enter key of the Keyboard to navigate.
    • Search for the CPU configuration section, it can be called CPU configuration, processor, Northbridge or Chipset and may be under an advanced or advanced mode tab or menu.
    • Now you need to look for the virtualization option and enable it, it can have different names such as Hyper-V, Vanderpool, SVM, AMD-V, Intel Virtualization Technology or VT-X.
  • Once its enabled, save and reboot your pc. If this part did not help you, you can specifically go the Website of the Mother Board Manufacturer of your Computer and ask for help there.

Enable Hyper-V

  • Open File Explorer on windows and Navigate to a folder.
  • Right click anywhere in a blank space inside the folder. Select New and then Click Text Document.
  • Open the file in Notepad and copy and paste the following text into it.
    pushd "%~dp0"
    dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
    for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
    del hyper-v.txt
    Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
    pause
    
  • Click File from the Menu bar in the top of Notepad, then click Save as.... In the Save as Window that appears, Change the File name to "Hyper-V.bat" and click save.
  • Now Double click Hyper-V.bat to run it. This will take some time but will install all features required for Hyper-V. A Restart might be required after it is done.
  • After Restarting Windows, search for Turn Windows features on or off in the Start Menu search bar and open it. 10
  • In the Window, lookout for Hyper-V, Virtual Machine Platform and Windows Hypervisor Platform. Then check the check boxes before them and click OK. This will also take some time and then a Restart is necessary.

Thats it Hyper-V is enabled.

@verdysh
Copy link

verdysh commented May 8, 2022

Thanks man!

@0xheycat
Copy link

thank you

@talhabw
Copy link

talhabw commented Jun 17, 2022

Hi,

Do you know a way to disable it? It says A hypervisor has been detected. Features required for Hyper-V will not be displayed. to me. I need to disable it for Intel HAXM.

Thanks in advance.

@Ducdinhvan
Copy link

Note: Need "Run as administrator" for Hyper-V.bat

@bluepanda280
Copy link

It WORKS! :) now i have a virtual machine to distory windows with side smerk

@thr03
Copy link

thr03 commented May 29, 2024

why in my machine cannot view hyper-v thank you answer

@ThePhoenixd
Copy link

C:\>pushd "C:\"

C:\>dir /b C:\Windows\servicing\Packages\*Hyper-V*.mum  1>hyper-v.txt
File is not found

C:\>for /F %i in ('findstr /i . hyper-v.txt 2>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%i"

C:\>del hyper-v.txt

C:\>Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL

Cистема DISM
Версия: 10.0.22621.2792

Версия образа: 10.0.22631.3155


Ошибка: 0x800f080c

@sanabel-al-firdaws
Copy link

sanabel-al-firdaws commented Aug 6, 2024

✨👍after running the script it asked to restart when i restarted i went into a boot loop where my laptop can't bootup

the last time this happened months ago i had to reset the pc now i am trying to disable hyper v

@sanabel-al-firdaws
Copy link

i tried disabliing through dism but it said disable feature is not a command then i tried through registery edit command it said its done but after restarting nothing happened now i am resting the laptop with my files keeped

@sanabel-al-firdaws
Copy link

done im glad there is an option to keep my files when doing a reset👍

@ballgitte
Copy link

thanks! worked for me. i did need to turn on Virtual Machine Platform in Turn Windows features on or off to fully turn hyper-v on. just make sure to restart your pc before doing so (after installing hyper-v from the .bat) in case of above issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment