How to clean that hyper-v mess?
I just want to delete all of them.
And yes, right click -> uninstall does nothing :(
I tried deleting the regedit entries and got a permission denied.
I tried to set permissions to the entries and got a access is denied:
C:\> subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002 /grant=administrators=F
SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002 : new ace for builtin\administrators
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002 - RegSetKeySecurity Error : 5 Access is denied.
SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002\Device Parameters : delete Perm. ACE 2 builtin\administrators
SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002\Device Parameters : new ace for builtin\administrators
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002\Device Parameters : 2 change(s)
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002\Properties - AddAce error : 87 The parameter is incorrect.
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ROOT\VMS_VSMP\0002\Properties: 5 : Unable to enumerate subkeys
The nuclear option that works with Windows Core is using netcfg to wipe out all your networking settings and re-initialize the network card drivers.
That seems to work better than nvspbind.exe or various other PowerShell commands when I really screw up my Hyper-V VMSwitch or LBFOTeam networking settings.
Following directions from the article Removing "Stale" Network Adapters in Hyper-V VM by Jeremy Jameson:
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
Must say I tried the
netcfg -d
prior to this, but it had no observable effect. Also I had Hyper-V disabled at the time of this process.You want the "remove-vmnetworkadapter" cmdlet in PowerShell. Merely looking at Device Manager will only allow you to add or remove device drivers from "devices" in the machine, where in this case the device is virtual.
If you want a list of the virtual NICs that are exposed to the management OS (which is what you're showing above) you can use this command:
Then you can find the ones that you don't want and delete them with remove-vmnetworkadapter. Once the virtual switch stops reporting them as NICs in the machine, they'll disappear from Device Manager.
I solved this by:
In PowerShell type:
netcfg -d
This WILL DELETE all network adapters AND network SETTINGS! Physical adapters will NOT be LOST. Then i restored my network settings and created new External Virtual Switches. This worked for me fine and fast.
Windows 10 64bit there.
if that doesn't work. right click on the adapter, properties. Click on Configure at the top, on the 3rd tab on Driver. Uninstall the driver and close the mask. the problem should be solved after pressing F5.