Search notes:

PowerShell cmdLet Get-WindowsOptionalFeature

Check if Hyper-V is enabled:
PS C:\> get-windowsOptionalFeature -online -featureName Microsoft-Hyper-V

FeatureName      : Microsoft-Hyper-V
DisplayName      : Hyper-V Platform
Description      : Provides the services that you can use to create and manage virtual machines and their resources.
RestartRequired  : Possible
State            : Disabled
CustomProperties :

See also

Powershell command noun: windowsOptionalFeature

Index