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

Charley Peck 0 Reputation points
2024-02-13T09:59:08.4966667+00:00

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:
    
Hyper-V
Hyper-V
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
    2024-02-16T04:40:45.84+00:00

    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.

    https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/enable-or-disable-windows-features-using-dism?view=windows-11

    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