How to Configure Hyper-V using CMD

Hyper-V is a virtualization program developed by Microsoft, and it integrates with Windows 8, Windows 8.1, and Windows 10 operating systems.

How to Configure Hyper-V using CMD

How to Enable and Disable Hyper-V using Command Prompt

There are several methods for installing Hyper-V on Windows 10. In our previous articles, we have examined two methods of installing Hyper-V on a Windows 10 operating system. These;

  1. Installing Hyper-V by using the Windows features on or off method.
  2. Installing Hyper-V using the Powershell.

You can reach our articles about the above-mentioned installation methods from the links below;

In this article, we will review the steps to enable and disable HyperV using the command prompt.

To enable Hyper-V with a command prompt on Windows 10, perform the following command;

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

To disable Hyper-V with a command prompt on Windows 10, perform the following command;

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

NOTE: At the command prompt, make sure that “Microsoft-Hyper-V-All” is combined.

How to Enable Hyper-V

Before you enable Hyper-V on a Windows 10 operating system by using a command prompt, you must run the command prompt as an administrator. To activate Hyper-V, follow the steps below.

   Step 1

On the Windows 10 start menu, right-click / Command Prompt (Admin).

Starting Command Prompt as Admin

   Step 2

To activate Hyper-V, type the following command at the command prompt and press Enter.

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

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

   Step 3

After executing the command, press Y (Yes) to restart your computer. After your computer restarts, you can see that the Hyper-V Manager installed.

Restarting Computer using CMD

How to Disable Hyper-V

After installing Hyper-V, if you want to remove this virtualization program from your computer, you must follow these steps.

   Step 1

To disable Hyper-V, perform the following command. Also, make sure that the Microsoft-Hyper-V-All command is contiguous in the feature name section.

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

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

   Step 2

You can verify that Hyper-V on Windows has uninstalled from the Windows features on or off window.

Windows Features

How to Install Hyper-V in Terminal ⇒ Video

You can watch the video below to enable and disable the Hyper-V virtualization program on Windows 10 and also subscribe to our YouTube channel to support us!

   Final Word


In this article, we have performed the Hyper-V configuration with dism.exe application using Command Prompt. Thanks for following us!

   Related Articles


What Does Hyper-V Do?
How to Create Virtual PC in Hyper-V
How to Setup Windows 10 using Hyper-V
How to Setup Windows 7 using Hyper-V
How to Setup Windows XP using Hyper-V

Add a Comment

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

shares
error: