Windows 10 Pro Hyper-V Virtual Switch Manager and PowerShell Get-VMSwitch generic failure

Pradeep Bhat 26 Reputation points
2020-10-31T04:44:17.5+00:00

I have spent the last couple of days trying to get my Windows 10 Pro Hypervisor to work. It was working well till a few days. However, the Virtual Switch Manager in the Hyper-V Manager is now unable to retrieve the list of virtual switches.

I have explored over 50 blogs and technical answers across Microsoft and other sites for an answer and tried out every recommendation except for i) nvspscrub (nvspscrub,js is not available for download anywhere), ii) Registry Edit (dont know how to do it) and iii) Windows 10 Repair Install (I have BitLocker enabled on all my drives, hence do not want to try it unless absolutely unavoidable).

I think that my problem will be resolved if Powershell's Get-VMSwitch command works. As of now, it shows the following:

PS> Get-VMSwitch
Get-VMSwitch : Generic failure
At line:1 char:1

  • Get-VMSwitch
  • ~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Get-VMSwitch], VirtualizationException
  • FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.GetVMSwitch

Request for suitable advice. Thanks

Pradeep Bhat

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,683 questions
{count} vote

Accepted answer
  1. Candy Luo 12,701 Reputation points Microsoft Vendor
    2020-11-05T01:45:41.277+00:00

    Hi ,

    Please also upgrade your network adapter to the latest version. If update the driver still doesn't work, you can uninstall the driver manually, and then restart computer, Windows 10 will automatically reinstall the adapter again.

    If all above steps didn't work, I would suggest you do a clean install.

    CBS.log has a few entries related to VMMS. I can share the file for further debugging

    Please understand, analysis of CBS log is beyond our forum support level and due to forum security policy, we have no such channel to collect user log information. If you want to find the cause, we recommend you open a case with MS Professional tech support service, they will help you open a phone or email case to Microsoft, so that you would get a technical support on a one-to-one basis while ensuring private information.

    Here is the link:

    https://support.microsoft.com/en-us/gp/customer-service-phone-numbers

    --------------------------------------------------------------

    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

3 additional answers

Sort by: Most helpful
  1. Candy Luo 12,701 Reputation points Microsoft Vendor
    2020-11-02T03:04:09.86+00:00

    Hi ,

    Before going further, I would appreciate your help in clarifying the following situations:

    However, the Virtual Switch Manager in the Hyper-V Manager is now unable to retrieve the list of virtual switches.

    Are there any error message when Virtual Switch Manager cannot retrieve the list of virtual switches?

    Before the issue happened, did you do any modifications?

    Then ,please refer to the following steps:

    1.Make sure you have patched your OS with fully windows updates.

    2.Restart Hyper V virtual machine management service and then see the results.

    3.Uninstall and install the Hyper-V role again.

    4.Run SFC /scannow to repair any corrupted files.

    5.See if there are something related in Hyper-v-vmms log for us to troubleshooting.

    6.Also make sure Hyper-V Extensible Virtual Switch is enabled in your NIC's Properties.

    Best Regards,

    Candy


    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

  2. Pradeep Bhat 26 Reputation points
    2020-11-04T13:48:52.923+00:00

    Hi Candy,

    Thanks for your response. My clarifications are given below:

    Are there any error message when Virtual Switch Manager cannot retrieve the list of virtual switches?
    Generic Error message

    1.Make sure you have patched your OS with fully windows updates.
    Done

    2.Restart Hyper V virtual machine management service and then see the results.
    Done multiple times but no change in the error message

    3.Uninstall and install the Hyper-V role again.
    Done multiple times but no change in the error message

    4.Run SFC /scannow to repair any corrupted files.
    Done. Output is as under:
    Windows Resource Protection found corrupt files and successfully repaired them.
    For online repairs, details are included in the CBS log file located at
    windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
    repairs, details are included in the log file provided by the /OFFLOGFILE flag.
    However, there is no change in the error message after Get-VMSwitch command

    5.See if there are something related in Hyper-v-vmms log for us to troubleshooting.
    CBS.log has a few entries related to VMMS. I can share the file for further debugging

    6.Also make sure Hyper-V Extensible Virtual Switch is enabled in your NIC's Properties.
    I am not able to enable the Hyper-V Extensible Virtual Switch in the NIC Properties

    Best Regards,

    Pradeep

    0 comments No comments

  3. Pradeep Bhat 26 Reputation points
    2020-11-05T07:34:01.64+00:00

    Hi Candy,

    I uninstalled the network adapter driver and rebooted the machine. Windows 10 automatically installed a Microsoft compatible driver, which seems to have resolved the issue. Thanks

    Pradeep


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.