Tips & Tricks

Enable BIOS Virtualization and Install Hyper-V on Windows 11 Home

Huong dan cai dat Hyper V tren Windows 11 Home

This guide walks you through enabling BIOS virtualization and installing Hyper-V on Windows 11 Home, complete with DISM commands to run in Command Prompt. If you only need a quick install using a hyperv.bat script file, check out our guide on How to Install Hyper-V on Windows 11 Home with a .bat Script.

Each major release of Windows typically comes in multiple editions or SKUs with distinct feature sets. Windows 11 is no different, offering editions such as Home and Pro. One major feature typically reserved for Pro editions is Hyper-V. However, with a little tweaking, you can still run it on the Home edition. In this guide, we will show you how to install Hyper-V on Windows 11 Home.

How to Enable Hardware Virtualization on Windows 11

Enable hardware virtualization in the BIOS on an HP laptop
Enable hardware virtualization in the BIOS on an HP laptop

Hyper-V is a bare-metal hypervisor and requires hardware virtualization to be enabled in your BIOS to function. Most modern systems support hardware virtualization, and you can turn it on in your device's BIOS settings.

The steps below apply to HP laptops. For other systems, consult your user manual or the manufacturer's documentation.

To enable hardware virtualization in the BIOS:

  1. Shut down your computer if it is currently running.
  2. Press the power button to turn it on, then immediately press F10 to enter the BIOS. The BIOS access key can vary depending on the manufacturer, so you may need to try F10, F2, F12, F1, or Del to find the right one.
  3. Once in the BIOS setup utility, navigate to the Configuration tab.
  4. Use the down arrow key to select Virtualization Technology.
  5. Press Enter, select Enabled, and press Enter again to confirm.
  6. Press F10 to save your changes and exit the BIOS.
  7. Your PC will restart with hardware virtualization enabled. You can now proceed with installing Hyper-V on your system.

How to Set Up Hyper-V on Windows 11 Home

The next step is to create and run a batch script that installs the necessary packages to enable Hyper-V on Windows 11 Home.

Before proceeding, create a restore point. This allows you to roll back your PC to its current state if anything goes wrong during the process.

To enable Hyper-V on Windows 11 Home:

1. Open a new Notepad file. To do this, press Win + R, type notepad, and click OK.

Open a Notepad file
Open a Notepad file

2. In Notepad, copy and paste the following script:

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

3. Press Ctrl + S to open the Save dialog.

4. In the File name field, enter hyperv.bat. The .bat file extension is essential for the script to execute.

Save the hyperv.bat installation script
Save the hyperv.bat installation script

5. Next, click the Save as type drop-down menu and select All Files.

6. Click Save to save the file.

Run the script as administrator
Run the script as administrator

7. Right-click the hyperv.bat file and select Run as administrator. Click Yes if prompted by User Account Control.

8. The script will run in Command Prompt to install Hyper-V. This may take a few minutes, so wait until the process finishes.

9. Once the process is complete, you will see the message "Operation completed successfully."

Success message
Success message

10. Type Y to confirm and restart your computer. Alternatively, type N to exit Command Prompt.

Keep in mind that a restart is required for the changes to take effect. After rebooting, Hyper-V should be ready on your Windows 11 Home system. Type Hyper-V into Windows Search and click Hyper-V Manager to create a new virtual machine.

If it is still not available, you can enable Hyper-V via the Windows Features dialog, Command Prompt, or Windows PowerShell.

How to Quickly Add Hyper-V to Windows 11 via Command Prompt

1. Press the Windows key and type cmd. Then right-click Command Prompt and select Run as administrator.

Enable Hyper-V using Command Prompt
Enable Hyper-V using Command Prompt

2. In the Command Prompt window, type the following command and press Enter:

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

3. This command uses the Deployment Image Servicing and Management (DISM) tool to enable Microsoft Hyper-V alongside all required dependencies on your Windows system. The "Operation completed successfully" message confirms that Hyper-V has been successfully enabled.

Source: quantrimang

Share: Facebook 𝕏 Email P in
Question and answer (0 comments)

Table of contents
  1. Top