Enable-WindowsOptionalFeature : Feature name Microsoft-Hyper-V is unknown.

Charley Peck 0 Reputation points

If i try to enable hyper v with the "C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All" I get an error message saying "Enable-WindowsOptionalFeature : Feature name Microsoft-Hyper-V is unknown. At line:1 char:1

  • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V ...
  •     + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
        + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand:
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,464 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 27,591 Reputation points Microsoft Vendor

    Hi Charley Peck,

    The Hyper-V feature could have been removed from the running operating system. You can restore the removed feature from a specified source using DISM.

    Dism /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V /All

    Please refer to this link for more details.


    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments