How to Install or Disable Hyper-V in Windows 10

Save to My DOJO

How to Install or Disable Hyper-V in Windows 10

In this article, I will write about a familiar-sounding tool I regularly use to prepare custom images for Azure amongst other tasks – Hyper-V Windows 10. Windows 10 comes with the Windows Client Version of Hyper-V with it built-in so there is no need to download anything extra! It is the same Hyper-V you use within WindowsServer but with Windows 10 Hyper-V limitations, such as  clustering features. We will look at how to enable Hyper-V Windows 10 and configure Hyper-V for Windows 10.

Operating System Prerequisites

First, let us check the prerequisites to install Hyper-V on Windows 10 One of the first considerations is the System Prerequisites, including licensing and supported editions of Windows 10.

Windows 10 Licensing

Not every license of Windows 10 has Hyper-V enabled. Only the following versions are eligible for Windows 10 Hyper-V.

  • Windows 10 Professional
  • Windows 10 Enterprise
  • Windows 10 Education

You can find your installed Windows Version when using PowerShell with the following command.

Get-WmiObject -Class Win32_OperatingSystem -Namespace “rootcimv2” | format-list Caption, Version

The screenshot below shows the PowerShell output when determining if you can enable Windows 10 Hyper-V.

Windows 10 licencing, PowerShell

While Hyper-V is “free” in Pro, Enterprise, and Education editions, it means that a user who might otherwise be able to purchase Windows 10 Home would need to buy up on the Windows 10 edition to enable the Hyper-V Role. For home users who want to enable Hyper-V Windows 10, this requirement will need considering.

Let us follow up with the hardware prerequisites to install Hyper-V on Windows 10,

Hardware prerequisites

There are two parts to be considered. First the hardware configuration and second the BIOS and UEFI setup.

Hardware configuration

  • 64-bit Processor with Second Level Address Translation (SLAT).
  • CPU support for VM Monitor Mode Extension (VT-x on Intel CPU’s).
  • Minimum of 4 GB memory. As virtual machines share memory with the Hyper-V host, you will need to provide enough memory to handle the expected virtual workload.

The screenshot shows my system as an example.

Windows 10 Basic System Information

BIOS / UEFI Configuration

You need to enable two Options in your system BIOS / UEFI.

  • Virtualization Technology – may have a different label depending on the motherboard manufacturer.
  • Hardware Enforced Data Execution Prevention.

You can find these options in the CPU Settings of your system. See the screenshot below as an example.

BIOS UEFI CPU settings Windows 10

How to check the hardware compatibility

To verify hardware compatibility in Windows, open the PowerShell and type systeminfo. 

Windows 10 PowerShell System Info

If all listed requirements in the output are showing “yes”, your system is compatible with Hyper-V.

How to install Hyper-V in Windows 10

When all hardware and license requirements are met, you can start the installation of Hyper-V in your Windows.

The easiest way is to search for Hyper-V in the Start Menu. It will then point to “Turn On or Off Windows Feature” Window in the Control Panel

Hyper-V Installation Windows 10

Within the context menu, you enable the Hyper-V feature together with the Platform and Management Tools.

Hyper-V Platform and Management Tools

 

Afterwards, your system will require a reboot.

Windows 10 reboot

After the reboot, you should be able to open the Hyper-V Manager on your system and start to configure Hyper-V.

How to install Hyper-V on Windows 10 using PowerShell and other CMD utilities

Aside from the GUI method of installing the Hyper-V feature in Windows 10, you can also use PowerShell to enable the optional feature. This provides advantages for the purposes of automation, build processes, and generally seamless ability to enable Hyper-V Windows 10 or disable Hyper-V Windows 10.

To use Powershell to enable Hyper-V Windows 10, you use the following cmdlet:

  • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

In addition to using PowerShell, you can also use the CMD terminal and DISM to install Hyper-V on Windows 10 using the following command:

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

Verifying the Hyper-V optional feature was enabled successfully

After you enable Hyper-V Windows 10 optional feature and reboot your system, you can easily verify the process to install Hyper-V on Windows 10 was successful. After installation, you should see the Hyper-V Manager listed.

WIndows 10 start menu, Hyper-V

You can also use PowerShell to verify Hyper-V has been installed. To verify the Hyper-V optional feature is installed, use the following cmdlet:

  • Get-WindowsOptionalFeature -Online | Where-Object {$_.State -eq “Enabled” -and $_.FeatureName -like “*Hyper*”} | Format-Table

PowerShell to verify Hyper-V has been installed

After launching the Hyper-V Manager, you will see the familiar management interface to manage your Hyper-V installation. Hyper-V Manager provides the GUI management tool used to configure and administer your local Hyper-V machines. If you are wondering how to install Windows 10 on a Hyper-V virtual machine, you can do this using the Hyper-V Manager once the Hyper-V role is enabled. You can also perform many different actions, including:

  • Creating a virtual machine
  • Import Virtual Machine
  • Changing Hyper-V Settings
  • Managing Hyper-V virtual switches
  • Managing and working with VHD and VHDX disks
  • Managing the Hyper-V Service

Hyper-V Manager WIndows 10

That’s all you need to do in order to install Hyper-V on your Windows 10 system and start to install Windows 10 on Hyper-V virtual machine

How to disable Hyper-V in Windows

Disabling Hyper-V is again pretty simple. You go the back to the “Turn Windows Features on or off” section in the control panel.

Turn Windows Features on or off control panel

Remove the checkmark from the Hyper-V checkbox. This essentially performs a Hyper-V disable task on your Windows 10 host.

Disable Hyper-V Windows 10

 

Reboot your Windows System and you are done.

Rebooting Windows 10 after removing Hyper-V

How to disable Hyper-V in Windows 10 using command prompt

Again, as mentioned above for installing Hyper-V in Windows 10, you can also disable Hyper-V Windows 10 by using either PowerShell or the CMD terminal and the DISM command once again.

To disable Hyper-V PowerShell, run the following cmdlet:

  • Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor

To disable Hyper-V Windows 10 command line, we can use the DISM tool to do that. Use the following command to disable Hyper-V Windows 10 using DISM:

  • DISM /Online /Disable-Feature:Microsoft-Hyper-V

After performing the Hyper-V disable on your Windows 10 host, you will need to reboot for the changes to take effect.

To properly protect your Hyper-V virtual machines, use Altaro VM Backup to securely backup and replicate your virtual machines. We work hard perpetually to give our customers confidence in their Hyper-V backup strategy.

To keep up to date with the latest Hyper-V best practices, become a member of the Altaro DOJO | Hyper-V now (it’s free).

Closing notes

Hyper-V in Windows 10 can be a pretty good tool for some certain administrative or daily task e.g.:

  • Spinning up a VM to test certain software
  • Using VMs to open suspicious files
  • Create an encapsulated work environment on your PC or Notebook when you work from home
  • Create custom images for VDI environments like Citrix or Windows Virtual Desktop
  • Open backups from VMs and extract certain files
  • etc.

I hope the blogpost will help some of you to become familiar with Hyper-V Windows 10 and the management tools. If there is anything you wish to ask regarding Hyper-V Windows 10, let me know in the comments below and I’ll get back to you!

Altaro Hyper-V Backup
Share this post

Not a DOJO Member yet?

Join thousands of other IT pros and receive a weekly roundup email with the latest content & updates!

Frequently Asked Questions

The process to install Hyper-V on Windows 10 involves a process to enable Hyper-V Windows 10 feature using the Windows 10 “Turn Windows features on or off
The Hyper-V optional feature is only available in Windows 10 Pro, Enterprise, and Education editions. Windows 10 Home does not have the ability to add the Hyper-V optional feature. Home users will need to buy a Windows 10 Pro or higher key to enable the Hyper-V functionality.
Windows 10 does not automatically include a “virtual machine.” What it does include, if you are running Windows 10 Pro, Enterprise, or Education editions, is the Hyper-V hypervisor feature that can be enabled to install and run virtual machines. After enabling the Hyper-V feature, users can install Windows 10, Windows Server, or Linux operating systems and run these as guest operating systems. Another consideration is licensing. Windows 10 does not include built-in virtual machine licensing. Users must license each copy of Windows the same as they would running on a host. However, for testing, development, and other purposes, the Microsoft Evaluation media for client and Windows Server operating systems are an excellent resource.
The best virtual machine for Windows 10 is relative to the use case, Windows 10 edition, and other factors. As mentioned earlier, the Hyper-V optional feature in Windows 10 requires Windows 10 Pro, Enterprise, or Education edition. If users are running Windows 10 Home edition, they will be unable to use Hyper-V in Windows 10. They would most likely look for another solution like VirtualBox or VMware Workstation to add the ability to run virtual machines to Windows 10 Home.
You can easily do this with the PowerShell cmdlet one-liner: Get-WindowsOptionalFeature -Online | Where-Object {$_.State -eq "Enabled" -and $_.FeatureName -like "*Hyper*"} | Format-Table. You can also use the Optional Features GUI in Windows 10 to verify the features enabled. Also, the presence of the Hyper-V Manager utility helps to denote Hyper-V tools have been installed. However, as a note, you can install the tools without the Hyper-V feature itself. Using PowerShell or the Optional Features GUI are the best ways to verify installation.
Using the Hyper-V Manager tool, you can connect to any guest virtual machines running in Windows 10. In addition, once a virtual machine is running with network connectivity, it can be connected to like any other machine, including using a traditional Remote Desktop connection if this is enabled in the guest OS.

4 thoughts on "How to Install or Disable Hyper-V in Windows 10"

Leave a comment or ask a question

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

Your email address will not be published.

Notify me of follow-up replies via email

Yes, I would like to receive new blog posts by email

What is the color of grass?

Please note: If you’re not already a member on the Dojo Forums you will create a new account and receive an activation email.