, , , ,

Install Hyper-V on Windows Server using PowerShell

1–2 minutes
2 comments on Install Hyper-V on Windows Server using PowerShell
Install Hyper-V on Windows Server using PowerShell

If you want to install Hyper-V on Windows Server you can use the following PowerShell command to install the Hyper-V role. If you want to run Hyper-V, make sure your server does include the following requirements.

  • 64-bit Processor with Second Level Address Translation (SLAT)
  • CPU support for VM Monitor Mode Extension (VT-c on Intel CPU’s)
  • Processors with Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology
  • Hardware-enforced Data Execution Prevention (DEP) must be available and enabled. Intel: XD bit (execute disable bit) AMD: NX bit (no execute bit)
  • Minimum of 4 GB memory

Install-WindowsFeature -Name Hyper-V -ComputerName HOSTNAME -IncludeManagementTools -Restart

To check if Hyper-V is enabled, use the following command:


Get-WindowsFeature -Name Hyper-V -ComputerName HOSTNAME

If you are looking for installing Hyper-V on Windows 10, check the following blog post: Install Hyper-V on Windows 10 using PowerShell

 

2 responses

  1. Muhammad Avatar
    Muhammad

    Thanks for sharing the Hyper-V enable command.
    Can you please share the command for checking the status of hyper-v, that is enabled/disabled.
    Thanks in advance.

    1. Thomas Maurer Avatar

      You can use the following command:

      Get-WindowsFeature -Name Hyper-V

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.