Edit

Share via


Install Hyper-V

This article shows how to install Hyper-V in Windows and Windows Server. Follow the set of instructions that fit your needs.

To create and run virtual machines, install the Hyper-V role on Windows Server by using Server Manager, or the Install-WindowsFeature cmdlet in Windows PowerShell.

To learn more about Hyper-V, see the Hyper-V Technology Overview. To try out Windows Server 2025, you can download and install an evaluation copy. See the Evaluation Center.

Check requirements for Windows Server

Before you install Windows Server or add the Hyper-V role, make sure that:

If you want to install only the management tools, such as Hyper-V Manager, see Remotely manage Hyper-V hosts with Hyper-V Manager.

Install Hyper-V by using Server Manager

  1. Open Server Manager if it's not already open. To start the application, select Start, and then search for and select Server Manager.

  2. In Server Manager, on the Manage menu, select Add Roles and Features.

  3. On the Before you begin page, verify that your destination server and network environment are prepared for the role and feature you want to install. Select Next.

  4. On the Select installation type page, select Role-based or feature-based installation, and then select Next.

  5. On the Select destination server page, select a server from the server pool, and then select Next.

  6. On the Select server roles page, select Hyper-V. From the Add Roles and Features Wizard page, select Add Features, and then select Next.

    Screenshot of PowerShell window after running the command to enable Hyper-V.

  7. On the Select features page, select Next, and then select Next again.

    Screenshot of Hyper-V installation settings.

  8. On the Create Virtual Switches page, Virtual Machine Migration page, and Default Stores page, select the options that suit your specific environment.

  9. On the Confirm installation selections page, select Restart the destination server automatically if required, and then select Install.

  10. When installation is finished, verify that Hyper-V installed correctly. Open the All Servers page in Server Manager and select a server on which you installed Hyper-V. Check the Roles and Features tile on the page for the selected server.

Install Hyper-V by using the Install-WindowsFeature cmdlet

  1. On the Windows desktop, select the Start button and type any part of the name Windows PowerShell.

  2. Right-click Windows PowerShell and select Run as Administrator.

    Important

    You must run PowerShell as an Administrator, or the commands will fail.

  3. To install Hyper-V on a server you're connected to remotely, run the following command and replace <computer_name> with the name of server. If you're connected locally to the server, run the command without -ComputerName <computer_name>.

    Install-WindowsFeature -Name Hyper-V -ComputerName <computer_name> -IncludeManagementTools -Restart
    

    Screenshot of PowerShell window after running the command to install Hyper-V in Windows Server.

  4. The installation starts. As soon as installation finishes, the computer restarts.

    Screenshot of PowerShell window showing the progress to install Hyper-V in Windows Server.

  5. After the server restarts, you can see that the Hyper-V role is installed by running the following command:

    Get-WindowsFeature Hyper-V -ComputerName <computer_name>
    

    If you're connected locally to the server, run the command without -ComputerName <computer_name>.

Note

If you install this role on a server that runs the Server Core installation option of Windows Server and use the parameter -IncludeManagementTools, only the Hyper-V Module for Windows PowerShell is installed. You can use the GUI management tool, Hyper-V Manager, on another computer to remotely manage a Hyper-V host that runs on a Server Core installation. For instructions on connecting remotely, see Remotely manage Hyper-V hosts with Hyper-V Manager.

Enable Hyper-V to create virtual machines on Windows. Hyper-V can be enabled in many ways including using the Windows control panel, PowerShell, or using the Deployment Imaging Servicing and Management tool (DISM). This article walks through each option.

Note

Hyper-V is built into Windows as an optional feature--there's no Hyper-V download.

Check requirements for Windows

  • Windows 10 (Pro or Enterprise), or Windows 11 (Pro or Enterprise)
  • 64-bit Processor with Second Level Address Translation (SLAT).
  • CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
  • Minimum of 4-GB memory.

Note

The Hyper-V role can't be installed on Windows 10 Home or Windows 11 Home.

For more information and troubleshooting, see Windows Hyper-V System Requirements.

Enable Hyper-V using PowerShell

  1. On the Windows desktop, select the Start button and type any part of the name Windows PowerShell.

  2. Right-click Windows PowerShell and select Run as Administrator.

Important

You must run PowerShell as an Administrator, or the commands will fail.

  1. Run the following command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

Screenshot of PowerShell window after running the command to enable Hyper-V.

  1. Enter Y to have the computer restart to complete the installation.

Enable Hyper-V with CMD and DISM

The Deployment Image Servicing and Management tool (DISM) helps configure Windows and Windows images. Among its many applications, DISM can enable Windows features while the operating system is running.

To enable the Hyper-V role using DISM:

  1. On the Windows desktop, select the Start button and type any part of the name Windows PowerShell.

  2. Right-click Windows PowerShell and select Run as Administrator.

  3. Type the following command:

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

    Console window showing Hyper-V being enabled.

  4. You see that the feature is enabled and that "The operation completed successfully."

For more information about DISM, see the DISM Technical Reference.

Enable the Hyper-V role through Settings

Enable Hyper-V on Windows 11

  1. Navigate to the Control Panel. Select Start, then search for Control Panel to open the application.

  2. Select Programs, then Programs and Features.

  3. Select Turn Windows Features on or off.

  4. Select Hyper-V and then select OK.

Windows programs and features dialogue box

When the installation completes you're prompted to restart your computer.

Enable Hyper-V on Windows 10

  1. Select Start, then search for and select Settings.
  2. Select Apps & features. Then select Programs and Features
  3. Select Turn Windows features on or off.
  4. Select Hyper-V and then select OK.
  5. Restart your computer to complete the installation.

Next step