New-VMSwitch : An unexpected error occurred: Provider is not capable of the attempted operation (0x80041024)

sanjeev kumar 5 Reputation points
2024-02-05T05:55:33.95+00:00

Hi, I am trying to create switch using New-VMSwitch utility from powershell. but getting error New-VMSwitch : Failed while creating virtual Ethernet switch. An unexpected error occurred: Provider is not capable of the attempted operation (0x80041024). Failed while creating virtual Ethernet switch. The Hyper-V Virtual Machine Management service encountered an unexpected error: Provider is not capable of the attempted operation (0x80041024). even in Hyper-V manager, it is throwing generic error when trying to open switch manager it was working earlier. but for some experiment, i uninstalled and re-installed hyper-v. From then it is not working. uninstall and re-install tried below steps multiple times

  1. control panel -> windows features on/off below commands in powershell to enable Hyper-V
  2. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
  3. DISM /Online /Enable-Feature:Microsoft-Hyper-V below commands in powershell to disable Hyper-V
  4. Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
  5. DISM /Online /Disable-Feature:Microsoft-Hyper-V

tried online solutions like uninstall/reinstall network adapter and above steps multiple times. still nothing worked. please help

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,538 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,731 Reputation points Microsoft Vendor
    2024-02-07T06:07:52.0966667+00:00

    Hi sanjeev kumar,

    The issue could be caused by the underlying system or driver. Please first make sure your system is up to date with all Windows updates. Open Device Manager, go to network adapters, right click on the adapters and select “Update driver”.

    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.