What is Hyper-V PowerShell module
Hyper-V PowerShell module is a bundle of cmdlets for creating, configuring and managing Microsoft Hyper-V hosts and virtual machines. It can be more a time efficient method than using GUI.
Hyper-V PowerShell module is not installed with Hyper-V by default. You need to be installed separately, or there’s even a chance that Hyper-V backups may fail with error “Hyper-V PowerShell Module is not installed”.
In this article, I will introduce how to install Hyper-V PowerShell module on Windows 10 or Windows Server 2016. The steps are basically the same on other editions, such like Windows 11, Windows Server 2019, and 2022.
Note: Hyper-V cannot be installed on Windows 10 Home edition.
How to install Hyper-V PowerShell module via PowerShell
Running a PowerShell command to enable Hyper-V and install Hyper-V PowerShell module is much fast than using GUI. In this part, I will introduce how to install Hyper-V PowerShell module separately or along with the Hyper-V role.
How to install Hyper-V PowerShell module on Windows 10
✦ Install only Hyper-V PowerShell module
Launch Windows PowerShell, and run the following commands to install the Hyper-V PowerShell module only:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Management-PowerShell
✦ Install Hyper-V with Hyper-V PowerShell module
Launch Windows PowerShell, and run the following commands to install Hyper-V and Hyper-V PowerShell module in one same step:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
How to install Hyper-V PowerShell module on Windows Server 2016
✦ Install only Hyper-V PowerShell module
Launch Windows PowerShell, and run the following commands to install the Hyper-V PowerShell module only:
Install-WindowsFeature -Name Hyper-V-PowerShell
✦ Install Hyper-V with Hyper-V PowerShell module
Launch Windows PowerShell, and run the following commands to install Hyper-V and Hyper-V PowerShell module in one same step:
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools
How to install Hyper-V PowerShell module via GUI
Except for PowerShell, you can also install Hyper-V and Hyper-V PowerShell module via GUI. The steps on Windows 10 and Windows Server 2016 are different.
In this part, I will introduce how to install Hyper-V PowerShell module via Windows 10 Control Panel GUI or Windows Server 2016 Server Manager.
How to install Hyper-V PowerShell module on Windows 10
1. Open Programs and Features in the Start menu or Settings > Apps.
2. Click Turn Windows features on or off on the pop-up window.
3. In Windows Features, expand Hyper-V > Hyper-V Management Tools and you can check the Hyper-V Module for Windows PowerShell option. Click OK to save.
How to install Hyper-V PowerShell module on Windows Server 2016
1. Open Server Manager, click Manage > Add Roles and Features, and click Next on the pop-up wizard.
2. Select a server you want to install Hyper-V PowerShell module, click Next to continue.
3. On Server Roles page, check the Hyper-V option from the features list.
4. Check Include management tools (if applicable) option and click Add Features on the pop-up window. Click Next to continue.
Summary
PowerShell is a very convenient way capable of perform some of the Hyper-V management automatically. In this article, I introduced 2 ways to install Hyper-V PowerShell module on Windows 10 or Windows Server 2016.
If you want to try other hypervisors like VMware Workstation, you can also disable Hyper-V in these ways.