How to enable Hyper-V on windows and enable it and use it. #hyper-v #virtualbox #virtualmachines #hyper-v

 #hyper-v #virtualbox #virtualmachines #hyper-v 

28-12-2024

Scripts

Powershell


Cmd


Restart


Optional features enable the option of hyper v then you restart.



To enable **Hyper-V** on Windows, follow these steps. Please note that Hyper-V is available on **Windows 10 Pro, Enterprise, and Education** editions, and **Windows 11 Pro** and higher.


### Steps to Enable Hyper-V:


#### Method 1: Using Windows Features


1. **Open the "Run" dialog:**

    

    - Press **Win + R** to open the Run dialog.

2. **Launch the "Windows Features" window:**

    

    - Type `optionalfeatures` and press **Enter**. This will open the "Windows Features" dialog.

3. **Enable Hyper-V:**

    

    - Scroll down and find **Hyper-V**.

    - Check the box next to **Hyper-V** (it may expand, and you may need to check sub-options like **Hyper-V Management Tools** and **Hyper-V Platform**).

    - Click **OK**.

4. **Restart your PC:**

    

    - Once Hyper-V is enabled, you may be prompted to restart your computer. Click **Restart now** to apply the changes.


#### Method 2: Using PowerShell


1. **Open PowerShell as Administrator:**

    

    - Right-click the **Start** button, then select **Windows Terminal (Admin)** or **PowerShell (Admin)**.

2. **Enable Hyper-V using PowerShell:**

    

    - In the PowerShell window, type the following command:

        

        ```

        dism.exe /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V-All

        ```

        

    - Press **Enter**.

3. **Restart your PC:**

    

    - After the installation completes, restart your computer to enable Hyper-V.


#### Method 3: Using BIOS/UEFI (If Needed)


Sometimes, Hyper-V requires hardware virtualization support to be enabled in your BIOS/UEFI settings (this is typically the case if you're getting an error about virtualization not being available).


1. **Restart your PC** and press the appropriate key to enter the BIOS/UEFI settings (usually **F2**, **F10**, **DEL**, or **ESC**).

    

2. **Find Virtualization Settings:**

    

    - Look for **Intel VT-x**, **Intel Virtualization Technology**, or **AMD-V** (depending on your processor).

    - Enable this option if it’s disabled.

3. **Save and Exit:**

    

    - Save your changes and exit the BIOS/UEFI settings (usually pressing **F10**).

4. **Restart your PC**: Your system will now boot with hardware virtualization enabled.

    


#### Confirming Hyper-V Installation:


1. After following one of the above methods, you can verify if Hyper-V is enabled:

    - Open **Command Prompt** or **PowerShell** and type the following command:

        

        ```

        systeminfo

        ```

        

    - Scroll through the output and look for **Hyper-V Requirements**. If it says "Yes," Hyper-V is enabled.


Alternatively, you can open the **Hyper-V Manager** by typing `virtmgmt.msc` in the **Run** dialog to check if it's available.


### Troubleshooting


- **"This feature is not available on your version of Windows"**: Ensure you are using **Windows 10 Pro**, **Enterprise**, **Education**, or **Windows 11 Pro**. Hyper-V is not available on Home editions of Windows.

    

- **Hardware Virtualization not enabled**: Make sure virtualization is enabled in the BIOS/UEFI as described in Method 3.

    


Let me know if you need more help!

Comments