hyperv vswitch and netcfg -d not working

Akram Mokhtar 21 Reputation points
2022-12-13T12:11:52.547+00:00

i have windows 11 , i want to clean my network byt command netcfg -d i got this error
270030-cmd-netcfg-error.jpg

my target is run HyperV vswitch

i thought it was from windows subsystem android , or from android development or from vmware workstation i removed all i install recently HyperV,so i can have new adapter called vswitch

i want to use it in a project. but hyperv cannot create vswitch ,i read that i need to clean up the network by netcfg -d so i get to this point now i tried netsh winsock reset and restart tried to uninstall and reinstall hyper v feature tried to remove all my adapeters and reinstall them tried scan sfc still get the netcfg error

here screen shots for my adapters but there is no hyperv vswitch at all
270076-hyper-vswitch-all-network-adapters.jpg

here screenshots for hyperv gui vswitch not loading270113-hyper-vswitch.jpg
270083-hyperv-switch-issue-by-cmd-and-powershell.jpg

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,718 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,696 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Akram Mokhtar 21 Reputation points
    2022-12-14T12:30:08.147+00:00

    i have no choice rather than reinstall windows 11 22H2 again

    0 comments No comments

  2. Akram Mokhtar 21 Reputation points
    2022-12-20T11:50:38.313+00:00

    i found the soultion today

    when i run the command it found an event viewer error

    and it was a dependency serivce related to a service

    here is the error:

    The Host Network Service service depends on the following service: vfpext. This service might not be installed.

    i tried many thing on the internet but didn't work

    i open registry :-

    and choose the Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

    then searched

    then found it inside the service

    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hns

    i just open the key and i took a backup before removing the line of vfpext

    but i compared it with another windows 11 which have no problem and the registry does not have this line

    and restart ,vola fixed

    check the screen shot below

    272501-a-the-fix-of-hyperv.jpg

    0 comments No comments

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.