How to remove a Hyper-V virtual Ethernet switch











up vote
14
down vote

favorite
4












A stale VM switch in Hyper-V is no longer used and when I try to delete it, it always fails with the following message:



PS C:> Get-VMSwitch nat

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
nat Private


PS C:> Get-VMSwitch nat | Remove-VMSwitch -Force
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = 'acf82f05-c07c-4b35-8588-921498456027': General access denied error (0x80070005).
At line:1 char:20
+ Get-VMSwitch nat | Remove-VMSwitch -Force
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


Attempting to delete within the GUI does not work, either:



GUI










share|improve this question
























  • access denied error = permission issue. do you use admin?
    – magicandre1981
    Mar 26 '17 at 10:55










  • yes, I'm running as administrator. I noted that error is misleading. The underline network adapter is gone in network share center, I believe that is the error, but how can I remove this vmswitch.
    – fluter
    Mar 26 '17 at 10:56















up vote
14
down vote

favorite
4












A stale VM switch in Hyper-V is no longer used and when I try to delete it, it always fails with the following message:



PS C:> Get-VMSwitch nat

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
nat Private


PS C:> Get-VMSwitch nat | Remove-VMSwitch -Force
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = 'acf82f05-c07c-4b35-8588-921498456027': General access denied error (0x80070005).
At line:1 char:20
+ Get-VMSwitch nat | Remove-VMSwitch -Force
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


Attempting to delete within the GUI does not work, either:



GUI










share|improve this question
























  • access denied error = permission issue. do you use admin?
    – magicandre1981
    Mar 26 '17 at 10:55










  • yes, I'm running as administrator. I noted that error is misleading. The underline network adapter is gone in network share center, I believe that is the error, but how can I remove this vmswitch.
    – fluter
    Mar 26 '17 at 10:56













up vote
14
down vote

favorite
4









up vote
14
down vote

favorite
4






4





A stale VM switch in Hyper-V is no longer used and when I try to delete it, it always fails with the following message:



PS C:> Get-VMSwitch nat

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
nat Private


PS C:> Get-VMSwitch nat | Remove-VMSwitch -Force
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = 'acf82f05-c07c-4b35-8588-921498456027': General access denied error (0x80070005).
At line:1 char:20
+ Get-VMSwitch nat | Remove-VMSwitch -Force
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


Attempting to delete within the GUI does not work, either:



GUI










share|improve this question















A stale VM switch in Hyper-V is no longer used and when I try to delete it, it always fails with the following message:



PS C:> Get-VMSwitch nat

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
nat Private


PS C:> Get-VMSwitch nat | Remove-VMSwitch -Force
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = 'acf82f05-c07c-4b35-8588-921498456027': General access denied error (0x80070005).
At line:1 char:20
+ Get-VMSwitch nat | Remove-VMSwitch -Force
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


Attempting to delete within the GUI does not work, either:



GUI







windows-10 hyper-v






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 '17 at 12:36









Run5k

10.5k72749




10.5k72749










asked Mar 26 '17 at 10:27









fluter

177115




177115












  • access denied error = permission issue. do you use admin?
    – magicandre1981
    Mar 26 '17 at 10:55










  • yes, I'm running as administrator. I noted that error is misleading. The underline network adapter is gone in network share center, I believe that is the error, but how can I remove this vmswitch.
    – fluter
    Mar 26 '17 at 10:56


















  • access denied error = permission issue. do you use admin?
    – magicandre1981
    Mar 26 '17 at 10:55










  • yes, I'm running as administrator. I noted that error is misleading. The underline network adapter is gone in network share center, I believe that is the error, but how can I remove this vmswitch.
    – fluter
    Mar 26 '17 at 10:56
















access denied error = permission issue. do you use admin?
– magicandre1981
Mar 26 '17 at 10:55




access denied error = permission issue. do you use admin?
– magicandre1981
Mar 26 '17 at 10:55












yes, I'm running as administrator. I noted that error is misleading. The underline network adapter is gone in network share center, I believe that is the error, but how can I remove this vmswitch.
– fluter
Mar 26 '17 at 10:56




yes, I'm running as administrator. I noted that error is misleading. The underline network adapter is gone in network share center, I believe that is the error, but how can I remove this vmswitch.
– fluter
Mar 26 '17 at 10:56










6 Answers
6






active

oldest

votes

















up vote
11
down vote



accepted










A similar problem was resolved on Microsoft's TechNet forums:




We have a virtual switch setup in the Virtual Switch Manager and the adapter has been deleted by mistake using the "Change Adapter Settings..." of the Network And Sharing Center. Now, obviously the switch is in a failed state and we just want to remove it from the list.




Ultimately, the OP performed an in-depth search within the registry and found the virtual switch configuration stored within the following key:




HKLMSYSTEMCurrentControlSetServicesVMSMPParametersSwitchList




After they deleted the corresponding value within that key and rebooted, the virtual switch was gone.



As always, I would recommend that you export your current settings to a .reg file to have an appropriate backup before attempting similar changes.



(Source: Can't remove failed virtual switch from Hyper-V's Virtual Switch Manager)






share|improve this answer

















  • 1




    I can confirm this worked for me. Thx
    – mloskot
    Mar 19 at 14:08










  • I cannot find such value in registry :/
    – Jurosh
    Mar 29 at 9:55






  • 1




    This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:30


















up vote
6
down vote













I didn't want to install the Azure Powershell tools so I just followed the steps in this video: https://www.youtube.com/watch?v=V5Gb342gSGg



Basically you go to Network Connections -> open properties for the virtual switch you want to delete -> click Configure -> go to the Driver tab -> Uninstall Device.



To prevent the Hyper-V service from creating a new one next time I restart my computer without disabling it altogether I changed the Startup Type of each Hyper-V service to be Manual.






share|improve this answer





















  • This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:29


















up vote
4
down vote













This was tested on Windows 10 1607.



Short Answer, if you're using Docker:



PS> Stop-Service com.docker.service
PS> Remove-ContainerNetwork -Name nat


Long Answer:



If you run into this situation and have Containers enabled or Docker installed, you'll need to stop Docker before you can remove the VMSwitch.



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
nat Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless


As you can see, I have a VMSwitch named nat. I want it to go away.



PS> Remove-VMSwitch -Name nat

Confirm
Are you sure you want to remove the virtual switch "nat"?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = '<guid>': General access denied error (0x80070005).
At line:1 char:1
+ Remove-VMSwitch -Name nat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


The answer turned out to be rather simple. Because I had configured the nat VMSwitch with a NetNat, I removed the NetNat. I'm unsure if this is a necessary step, but I did it anyway.



PS> Get-NetNat -Name '<name>' | Remove-NetNat


Then I stopped Docker.



PS> Stop-Service com.docker.service


And finally



PS> Remove-ContainerNetwork -Name nat

Confirm
Remove-ContainerNetwork will remove the container network "nat".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):


To make sure it was gone:



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless





share|improve this answer

















  • 2




    FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
    – mloskot
    Mar 19 at 13:51


















up vote
3
down vote













Even though I'm not using Docker, I wanted to figure out a solution without using regedit, so after attempting the answer from RobV8R, I found instructions on this question on MS Technet.



Get-HNSNetwork | Remove-HNSNetwork


Or, for a more filtered optoin, this is what I needed.



Get-HNSNetwork | ? Name -Like "Default Switch" | Remove-HNSNetwork


Also, I'm going to assume that you'll want to follow @mxgg250's advice, and set all hyper-v services to manual start, otherwise it's going to recreate the switch on reboot.






share|improve this answer





















  • "Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
    – Froosh
    Sep 12 at 3:46












  • … which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
    – Froosh
    Sep 12 at 3:54


















up vote
0
down vote













There is a simpler way to fix the problem on Microsoft's TechNet forums:




Try Deleting the Bridge Adapter from "Control Panel > Network and Internet > Network Connections"




Source: https://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/e49df568-4f4c-47b7-b30c-952d1e26ca58/#8ecfa676-3184-4035-96de-10df079f706f






share|improve this answer





















  • I do not have a Bridge Adapter.
    – johnny
    Dec 8 '17 at 19:48










  • @johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
    – Alejandro
    Dec 9 '17 at 21:19


















up vote
0
down vote













I am not sure if this is right but worked for me:
https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/





UPDATE




Source: Unable to Delete Network Adapter in Windows 10?




Method 1 – Use Device Manager



The first thing you can try to do is open Device Manager (click on start and type device manager), expand Network Adapters, and then right-click on the network adapter you want to remove.



enter image description here



Here, you will see an option called Uninstall device. This should hopefully not be greyed out. If it is, continue to the next method. When you select uninstall device, another window will appear asking to confirm the uninstall.



enter image description here



You’ll also see an option to delete the driver software for the device. If you want to completely remove the network adapter, I suggest selecting this option to remove the driver also. If all goes well, you should see that the adapter has been removed from both Device Manager and the list of network adapters in Control Panel.



If you don’t see the device listed here, you can try to click on View and then Show hidden devices.



Method 2 – Delete Network Profile



We can also try to delete the network profile via the command line and then try Method 1 again. First, you have to open an elevated command prompt by clicking on Start, typing in CMD and then right-clicking on command prompt and choosing Run as Administrator.



Now type in the following command to see all wired (Ethernet) adapters:



netsh lan show profiles


If you need to remove a wireless adapter, type this command:



netsh wlan show profiles


If you get some error message about the Wired or WLAN AutoConfig service not running, then click on Start, type in services.msc, right-click on the appropriate service and choose Start.



enter image description here



Now when you run the command, you should see a list of profiles. In my case, I only have one profile on this computer.



enter image description here



Next, type in the following command, which will delete the desired interface.



netsh lan delete profile interface="InterfaceName"


Again, if it’s a wireless interface, use wlan instead of lan. The interface name is listed at the top of each heading (Profile on interface name) when you ran the show profiles command. Once the profile has been deleted, restart your computer and try Method 1 again.



Method 3 – Remove Adapter Settings via Registry




IMPORTANT



If you need to edit the registry, make sure you backup the registry first.




In addition to deleting the network profile, you can also try to remove the adapter settings via the registry. After you remove the settings, you can go back to method 1 and try to remove the adapter. To remove the settings, open the registry editor (click on Start and type in regedit.msc), and navigate to the following key:



HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services - Tcpip - Parameters - Interfaces


You’ll see several items listed with a long series of random numbers. If you click on each one, you’ll see the IP address that is assigned to that network adapter.



enter image description here



You can confirm which network adapter corresponds to that registry key by opening a command prompt (Start and type cmd) and typing in ipconfig.



enter image description here



As you can see, Ethernet adapter is the one that has an IP address of 192.168.1.233. So you would delete the key under Interfaces that starts with {73123f2a-ad10-4f4b-900e…}. If you click on a different interface, one of them will have the IP 192.168.247.1, which corresponds to the VMWare Network Adapter on the computer. Again, this only deletes the settings for the adapter, not the adapter itself. Restart the computer and try Method 1 again.



For further information please referto the following link:



https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/






share|improve this answer



















  • 1




    First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
    – Run5k
    Nov 13 at 15:32











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1192492%2fhow-to-remove-a-hyper-v-virtual-ethernet-switch%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























6 Answers
6






active

oldest

votes








6 Answers
6






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
11
down vote



accepted










A similar problem was resolved on Microsoft's TechNet forums:




We have a virtual switch setup in the Virtual Switch Manager and the adapter has been deleted by mistake using the "Change Adapter Settings..." of the Network And Sharing Center. Now, obviously the switch is in a failed state and we just want to remove it from the list.




Ultimately, the OP performed an in-depth search within the registry and found the virtual switch configuration stored within the following key:




HKLMSYSTEMCurrentControlSetServicesVMSMPParametersSwitchList




After they deleted the corresponding value within that key and rebooted, the virtual switch was gone.



As always, I would recommend that you export your current settings to a .reg file to have an appropriate backup before attempting similar changes.



(Source: Can't remove failed virtual switch from Hyper-V's Virtual Switch Manager)






share|improve this answer

















  • 1




    I can confirm this worked for me. Thx
    – mloskot
    Mar 19 at 14:08










  • I cannot find such value in registry :/
    – Jurosh
    Mar 29 at 9:55






  • 1




    This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:30















up vote
11
down vote



accepted










A similar problem was resolved on Microsoft's TechNet forums:




We have a virtual switch setup in the Virtual Switch Manager and the adapter has been deleted by mistake using the "Change Adapter Settings..." of the Network And Sharing Center. Now, obviously the switch is in a failed state and we just want to remove it from the list.




Ultimately, the OP performed an in-depth search within the registry and found the virtual switch configuration stored within the following key:




HKLMSYSTEMCurrentControlSetServicesVMSMPParametersSwitchList




After they deleted the corresponding value within that key and rebooted, the virtual switch was gone.



As always, I would recommend that you export your current settings to a .reg file to have an appropriate backup before attempting similar changes.



(Source: Can't remove failed virtual switch from Hyper-V's Virtual Switch Manager)






share|improve this answer

















  • 1




    I can confirm this worked for me. Thx
    – mloskot
    Mar 19 at 14:08










  • I cannot find such value in registry :/
    – Jurosh
    Mar 29 at 9:55






  • 1




    This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:30













up vote
11
down vote



accepted







up vote
11
down vote



accepted






A similar problem was resolved on Microsoft's TechNet forums:




We have a virtual switch setup in the Virtual Switch Manager and the adapter has been deleted by mistake using the "Change Adapter Settings..." of the Network And Sharing Center. Now, obviously the switch is in a failed state and we just want to remove it from the list.




Ultimately, the OP performed an in-depth search within the registry and found the virtual switch configuration stored within the following key:




HKLMSYSTEMCurrentControlSetServicesVMSMPParametersSwitchList




After they deleted the corresponding value within that key and rebooted, the virtual switch was gone.



As always, I would recommend that you export your current settings to a .reg file to have an appropriate backup before attempting similar changes.



(Source: Can't remove failed virtual switch from Hyper-V's Virtual Switch Manager)






share|improve this answer












A similar problem was resolved on Microsoft's TechNet forums:




We have a virtual switch setup in the Virtual Switch Manager and the adapter has been deleted by mistake using the "Change Adapter Settings..." of the Network And Sharing Center. Now, obviously the switch is in a failed state and we just want to remove it from the list.




Ultimately, the OP performed an in-depth search within the registry and found the virtual switch configuration stored within the following key:




HKLMSYSTEMCurrentControlSetServicesVMSMPParametersSwitchList




After they deleted the corresponding value within that key and rebooted, the virtual switch was gone.



As always, I would recommend that you export your current settings to a .reg file to have an appropriate backup before attempting similar changes.



(Source: Can't remove failed virtual switch from Hyper-V's Virtual Switch Manager)







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 '17 at 12:19









Run5k

10.5k72749




10.5k72749








  • 1




    I can confirm this worked for me. Thx
    – mloskot
    Mar 19 at 14:08










  • I cannot find such value in registry :/
    – Jurosh
    Mar 29 at 9:55






  • 1




    This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:30














  • 1




    I can confirm this worked for me. Thx
    – mloskot
    Mar 19 at 14:08










  • I cannot find such value in registry :/
    – Jurosh
    Mar 29 at 9:55






  • 1




    This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:30








1




1




I can confirm this worked for me. Thx
– mloskot
Mar 19 at 14:08




I can confirm this worked for me. Thx
– mloskot
Mar 19 at 14:08












I cannot find such value in registry :/
– Jurosh
Mar 29 at 9:55




I cannot find such value in registry :/
– Jurosh
Mar 29 at 9:55




1




1




This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
– JohnZaj
May 18 at 21:30




This worked for me, however I ALSO had to dig into the Network Connection in the registry to delete it. This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
– JohnZaj
May 18 at 21:30












up vote
6
down vote













I didn't want to install the Azure Powershell tools so I just followed the steps in this video: https://www.youtube.com/watch?v=V5Gb342gSGg



Basically you go to Network Connections -> open properties for the virtual switch you want to delete -> click Configure -> go to the Driver tab -> Uninstall Device.



To prevent the Hyper-V service from creating a new one next time I restart my computer without disabling it altogether I changed the Startup Type of each Hyper-V service to be Manual.






share|improve this answer





















  • This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:29















up vote
6
down vote













I didn't want to install the Azure Powershell tools so I just followed the steps in this video: https://www.youtube.com/watch?v=V5Gb342gSGg



Basically you go to Network Connections -> open properties for the virtual switch you want to delete -> click Configure -> go to the Driver tab -> Uninstall Device.



To prevent the Hyper-V service from creating a new one next time I restart my computer without disabling it altogether I changed the Startup Type of each Hyper-V service to be Manual.






share|improve this answer





















  • This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:29













up vote
6
down vote










up vote
6
down vote









I didn't want to install the Azure Powershell tools so I just followed the steps in this video: https://www.youtube.com/watch?v=V5Gb342gSGg



Basically you go to Network Connections -> open properties for the virtual switch you want to delete -> click Configure -> go to the Driver tab -> Uninstall Device.



To prevent the Hyper-V service from creating a new one next time I restart my computer without disabling it altogether I changed the Startup Type of each Hyper-V service to be Manual.






share|improve this answer












I didn't want to install the Azure Powershell tools so I just followed the steps in this video: https://www.youtube.com/watch?v=V5Gb342gSGg



Basically you go to Network Connections -> open properties for the virtual switch you want to delete -> click Configure -> go to the Driver tab -> Uninstall Device.



To prevent the Hyper-V service from creating a new one next time I restart my computer without disabling it altogether I changed the Startup Type of each Hyper-V service to be Manual.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 6 at 18:16









mxgg250

6111




6111












  • This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:29


















  • This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
    – JohnZaj
    May 18 at 21:29
















This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
– JohnZaj
May 18 at 21:29




This still left all the references to the docker svc in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesvmsmpparametersSwitchList{yada yada} and HKEY_LOCAL_MACHINESYSTEMControlSEt001ControlNetwork{yada yada}
– JohnZaj
May 18 at 21:29










up vote
4
down vote













This was tested on Windows 10 1607.



Short Answer, if you're using Docker:



PS> Stop-Service com.docker.service
PS> Remove-ContainerNetwork -Name nat


Long Answer:



If you run into this situation and have Containers enabled or Docker installed, you'll need to stop Docker before you can remove the VMSwitch.



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
nat Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless


As you can see, I have a VMSwitch named nat. I want it to go away.



PS> Remove-VMSwitch -Name nat

Confirm
Are you sure you want to remove the virtual switch "nat"?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = '<guid>': General access denied error (0x80070005).
At line:1 char:1
+ Remove-VMSwitch -Name nat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


The answer turned out to be rather simple. Because I had configured the nat VMSwitch with a NetNat, I removed the NetNat. I'm unsure if this is a necessary step, but I did it anyway.



PS> Get-NetNat -Name '<name>' | Remove-NetNat


Then I stopped Docker.



PS> Stop-Service com.docker.service


And finally



PS> Remove-ContainerNetwork -Name nat

Confirm
Remove-ContainerNetwork will remove the container network "nat".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):


To make sure it was gone:



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless





share|improve this answer

















  • 2




    FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
    – mloskot
    Mar 19 at 13:51















up vote
4
down vote













This was tested on Windows 10 1607.



Short Answer, if you're using Docker:



PS> Stop-Service com.docker.service
PS> Remove-ContainerNetwork -Name nat


Long Answer:



If you run into this situation and have Containers enabled or Docker installed, you'll need to stop Docker before you can remove the VMSwitch.



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
nat Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless


As you can see, I have a VMSwitch named nat. I want it to go away.



PS> Remove-VMSwitch -Name nat

Confirm
Are you sure you want to remove the virtual switch "nat"?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = '<guid>': General access denied error (0x80070005).
At line:1 char:1
+ Remove-VMSwitch -Name nat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


The answer turned out to be rather simple. Because I had configured the nat VMSwitch with a NetNat, I removed the NetNat. I'm unsure if this is a necessary step, but I did it anyway.



PS> Get-NetNat -Name '<name>' | Remove-NetNat


Then I stopped Docker.



PS> Stop-Service com.docker.service


And finally



PS> Remove-ContainerNetwork -Name nat

Confirm
Remove-ContainerNetwork will remove the container network "nat".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):


To make sure it was gone:



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless





share|improve this answer

















  • 2




    FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
    – mloskot
    Mar 19 at 13:51













up vote
4
down vote










up vote
4
down vote









This was tested on Windows 10 1607.



Short Answer, if you're using Docker:



PS> Stop-Service com.docker.service
PS> Remove-ContainerNetwork -Name nat


Long Answer:



If you run into this situation and have Containers enabled or Docker installed, you'll need to stop Docker before you can remove the VMSwitch.



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
nat Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless


As you can see, I have a VMSwitch named nat. I want it to go away.



PS> Remove-VMSwitch -Name nat

Confirm
Are you sure you want to remove the virtual switch "nat"?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = '<guid>': General access denied error (0x80070005).
At line:1 char:1
+ Remove-VMSwitch -Name nat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


The answer turned out to be rather simple. Because I had configured the nat VMSwitch with a NetNat, I removed the NetNat. I'm unsure if this is a necessary step, but I did it anyway.



PS> Get-NetNat -Name '<name>' | Remove-NetNat


Then I stopped Docker.



PS> Stop-Service com.docker.service


And finally



PS> Remove-ContainerNetwork -Name nat

Confirm
Remove-ContainerNetwork will remove the container network "nat".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):


To make sure it was gone:



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless





share|improve this answer












This was tested on Windows 10 1607.



Short Answer, if you're using Docker:



PS> Stop-Service com.docker.service
PS> Remove-ContainerNetwork -Name nat


Long Answer:



If you run into this situation and have Containers enabled or Docker installed, you'll need to stop Docker before you can remove the VMSwitch.



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
nat Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless


As you can see, I have a VMSwitch named nat. I want it to go away.



PS> Remove-VMSwitch -Name nat

Confirm
Are you sure you want to remove the virtual switch "nat"?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Remove-VMSwitch : Failed while removing virtual Ethernet switch.
Switch delete failed, switch = '<guid>': General access denied error (0x80070005).
At line:1 char:1
+ Remove-VMSwitch -Name nat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Remove-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch


The answer turned out to be rather simple. Because I had configured the nat VMSwitch with a NetNat, I removed the NetNat. I'm unsure if this is a necessary step, but I did it anyway.



PS> Get-NetNat -Name '<name>' | Remove-NetNat


Then I stopped Docker.



PS> Stop-Service com.docker.service


And finally



PS> Remove-ContainerNetwork -Name nat

Confirm
Remove-ContainerNetwork will remove the container network "nat".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):


To make sure it was gone:



PS> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
DockerNAT Internal
Windows Phone Emulator Internal Switch Private
Primary Virtual Switch External Intel(R) Wireless






share|improve this answer












share|improve this answer



share|improve this answer










answered May 29 '17 at 1:27









RobV8R

1413




1413








  • 2




    FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
    – mloskot
    Mar 19 at 13:51














  • 2




    FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
    – mloskot
    Mar 19 at 13:51








2




2




FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
– mloskot
Mar 19 at 13:51




FYI, this procedure may not work. It doesn't work for me. No docker service is running, still can not renive the dangling nat. So, it may be necessary to resort to the @Run5K answer
– mloskot
Mar 19 at 13:51










up vote
3
down vote













Even though I'm not using Docker, I wanted to figure out a solution without using regedit, so after attempting the answer from RobV8R, I found instructions on this question on MS Technet.



Get-HNSNetwork | Remove-HNSNetwork


Or, for a more filtered optoin, this is what I needed.



Get-HNSNetwork | ? Name -Like "Default Switch" | Remove-HNSNetwork


Also, I'm going to assume that you'll want to follow @mxgg250's advice, and set all hyper-v services to manual start, otherwise it's going to recreate the switch on reboot.






share|improve this answer





















  • "Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
    – Froosh
    Sep 12 at 3:46












  • … which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
    – Froosh
    Sep 12 at 3:54















up vote
3
down vote













Even though I'm not using Docker, I wanted to figure out a solution without using regedit, so after attempting the answer from RobV8R, I found instructions on this question on MS Technet.



Get-HNSNetwork | Remove-HNSNetwork


Or, for a more filtered optoin, this is what I needed.



Get-HNSNetwork | ? Name -Like "Default Switch" | Remove-HNSNetwork


Also, I'm going to assume that you'll want to follow @mxgg250's advice, and set all hyper-v services to manual start, otherwise it's going to recreate the switch on reboot.






share|improve this answer





















  • "Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
    – Froosh
    Sep 12 at 3:46












  • … which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
    – Froosh
    Sep 12 at 3:54













up vote
3
down vote










up vote
3
down vote









Even though I'm not using Docker, I wanted to figure out a solution without using regedit, so after attempting the answer from RobV8R, I found instructions on this question on MS Technet.



Get-HNSNetwork | Remove-HNSNetwork


Or, for a more filtered optoin, this is what I needed.



Get-HNSNetwork | ? Name -Like "Default Switch" | Remove-HNSNetwork


Also, I'm going to assume that you'll want to follow @mxgg250's advice, and set all hyper-v services to manual start, otherwise it's going to recreate the switch on reboot.






share|improve this answer












Even though I'm not using Docker, I wanted to figure out a solution without using regedit, so after attempting the answer from RobV8R, I found instructions on this question on MS Technet.



Get-HNSNetwork | Remove-HNSNetwork


Or, for a more filtered optoin, this is what I needed.



Get-HNSNetwork | ? Name -Like "Default Switch" | Remove-HNSNetwork


Also, I'm going to assume that you'll want to follow @mxgg250's advice, and set all hyper-v services to manual start, otherwise it's going to recreate the switch on reboot.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 24 at 15:12









bradlis7

18311




18311












  • "Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
    – Froosh
    Sep 12 at 3:46












  • … which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
    – Froosh
    Sep 12 at 3:54


















  • "Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
    – Froosh
    Sep 12 at 3:46












  • … which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
    – Froosh
    Sep 12 at 3:54
















"Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
– Froosh
Sep 12 at 3:46






"Get-HNSNetwork | ? Name -Like 'nat' | Remove-HNSNetwork" - Worked nicely to remove the 'nat' VMSwitch left behind after uninstalling Docker for Windows, thanks!
– Froosh
Sep 12 at 3:46














… which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
– Froosh
Sep 12 at 3:54




… which is also documented on Microsoft's cleanup Docker instructions docs.microsoft.com/en-us/virtualization/windowscontainers/…
– Froosh
Sep 12 at 3:54










up vote
0
down vote













There is a simpler way to fix the problem on Microsoft's TechNet forums:




Try Deleting the Bridge Adapter from "Control Panel > Network and Internet > Network Connections"




Source: https://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/e49df568-4f4c-47b7-b30c-952d1e26ca58/#8ecfa676-3184-4035-96de-10df079f706f






share|improve this answer





















  • I do not have a Bridge Adapter.
    – johnny
    Dec 8 '17 at 19:48










  • @johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
    – Alejandro
    Dec 9 '17 at 21:19















up vote
0
down vote













There is a simpler way to fix the problem on Microsoft's TechNet forums:




Try Deleting the Bridge Adapter from "Control Panel > Network and Internet > Network Connections"




Source: https://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/e49df568-4f4c-47b7-b30c-952d1e26ca58/#8ecfa676-3184-4035-96de-10df079f706f






share|improve this answer





















  • I do not have a Bridge Adapter.
    – johnny
    Dec 8 '17 at 19:48










  • @johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
    – Alejandro
    Dec 9 '17 at 21:19













up vote
0
down vote










up vote
0
down vote









There is a simpler way to fix the problem on Microsoft's TechNet forums:




Try Deleting the Bridge Adapter from "Control Panel > Network and Internet > Network Connections"




Source: https://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/e49df568-4f4c-47b7-b30c-952d1e26ca58/#8ecfa676-3184-4035-96de-10df079f706f






share|improve this answer












There is a simpler way to fix the problem on Microsoft's TechNet forums:




Try Deleting the Bridge Adapter from "Control Panel > Network and Internet > Network Connections"




Source: https://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/e49df568-4f4c-47b7-b30c-952d1e26ca58/#8ecfa676-3184-4035-96de-10df079f706f







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 2 '17 at 4:07









Alejandro

312




312












  • I do not have a Bridge Adapter.
    – johnny
    Dec 8 '17 at 19:48










  • @johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
    – Alejandro
    Dec 9 '17 at 21:19


















  • I do not have a Bridge Adapter.
    – johnny
    Dec 8 '17 at 19:48










  • @johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
    – Alejandro
    Dec 9 '17 at 21:19
















I do not have a Bridge Adapter.
– johnny
Dec 8 '17 at 19:48




I do not have a Bridge Adapter.
– johnny
Dec 8 '17 at 19:48












@johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
– Alejandro
Dec 9 '17 at 21:19




@johnny Can you share a screenshot of your network adapters from the "Network Connections" window? Maybe you can solve it by uninstalling the Hyper-V Extensible Virtual Switch protocol following the instructions from this answer.
– Alejandro
Dec 9 '17 at 21:19










up vote
0
down vote













I am not sure if this is right but worked for me:
https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/





UPDATE




Source: Unable to Delete Network Adapter in Windows 10?




Method 1 – Use Device Manager



The first thing you can try to do is open Device Manager (click on start and type device manager), expand Network Adapters, and then right-click on the network adapter you want to remove.



enter image description here



Here, you will see an option called Uninstall device. This should hopefully not be greyed out. If it is, continue to the next method. When you select uninstall device, another window will appear asking to confirm the uninstall.



enter image description here



You’ll also see an option to delete the driver software for the device. If you want to completely remove the network adapter, I suggest selecting this option to remove the driver also. If all goes well, you should see that the adapter has been removed from both Device Manager and the list of network adapters in Control Panel.



If you don’t see the device listed here, you can try to click on View and then Show hidden devices.



Method 2 – Delete Network Profile



We can also try to delete the network profile via the command line and then try Method 1 again. First, you have to open an elevated command prompt by clicking on Start, typing in CMD and then right-clicking on command prompt and choosing Run as Administrator.



Now type in the following command to see all wired (Ethernet) adapters:



netsh lan show profiles


If you need to remove a wireless adapter, type this command:



netsh wlan show profiles


If you get some error message about the Wired or WLAN AutoConfig service not running, then click on Start, type in services.msc, right-click on the appropriate service and choose Start.



enter image description here



Now when you run the command, you should see a list of profiles. In my case, I only have one profile on this computer.



enter image description here



Next, type in the following command, which will delete the desired interface.



netsh lan delete profile interface="InterfaceName"


Again, if it’s a wireless interface, use wlan instead of lan. The interface name is listed at the top of each heading (Profile on interface name) when you ran the show profiles command. Once the profile has been deleted, restart your computer and try Method 1 again.



Method 3 – Remove Adapter Settings via Registry




IMPORTANT



If you need to edit the registry, make sure you backup the registry first.




In addition to deleting the network profile, you can also try to remove the adapter settings via the registry. After you remove the settings, you can go back to method 1 and try to remove the adapter. To remove the settings, open the registry editor (click on Start and type in regedit.msc), and navigate to the following key:



HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services - Tcpip - Parameters - Interfaces


You’ll see several items listed with a long series of random numbers. If you click on each one, you’ll see the IP address that is assigned to that network adapter.



enter image description here



You can confirm which network adapter corresponds to that registry key by opening a command prompt (Start and type cmd) and typing in ipconfig.



enter image description here



As you can see, Ethernet adapter is the one that has an IP address of 192.168.1.233. So you would delete the key under Interfaces that starts with {73123f2a-ad10-4f4b-900e…}. If you click on a different interface, one of them will have the IP 192.168.247.1, which corresponds to the VMWare Network Adapter on the computer. Again, this only deletes the settings for the adapter, not the adapter itself. Restart the computer and try Method 1 again.



For further information please referto the following link:



https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/






share|improve this answer



















  • 1




    First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
    – Run5k
    Nov 13 at 15:32















up vote
0
down vote













I am not sure if this is right but worked for me:
https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/





UPDATE




Source: Unable to Delete Network Adapter in Windows 10?




Method 1 – Use Device Manager



The first thing you can try to do is open Device Manager (click on start and type device manager), expand Network Adapters, and then right-click on the network adapter you want to remove.



enter image description here



Here, you will see an option called Uninstall device. This should hopefully not be greyed out. If it is, continue to the next method. When you select uninstall device, another window will appear asking to confirm the uninstall.



enter image description here



You’ll also see an option to delete the driver software for the device. If you want to completely remove the network adapter, I suggest selecting this option to remove the driver also. If all goes well, you should see that the adapter has been removed from both Device Manager and the list of network adapters in Control Panel.



If you don’t see the device listed here, you can try to click on View and then Show hidden devices.



Method 2 – Delete Network Profile



We can also try to delete the network profile via the command line and then try Method 1 again. First, you have to open an elevated command prompt by clicking on Start, typing in CMD and then right-clicking on command prompt and choosing Run as Administrator.



Now type in the following command to see all wired (Ethernet) adapters:



netsh lan show profiles


If you need to remove a wireless adapter, type this command:



netsh wlan show profiles


If you get some error message about the Wired or WLAN AutoConfig service not running, then click on Start, type in services.msc, right-click on the appropriate service and choose Start.



enter image description here



Now when you run the command, you should see a list of profiles. In my case, I only have one profile on this computer.



enter image description here



Next, type in the following command, which will delete the desired interface.



netsh lan delete profile interface="InterfaceName"


Again, if it’s a wireless interface, use wlan instead of lan. The interface name is listed at the top of each heading (Profile on interface name) when you ran the show profiles command. Once the profile has been deleted, restart your computer and try Method 1 again.



Method 3 – Remove Adapter Settings via Registry




IMPORTANT



If you need to edit the registry, make sure you backup the registry first.




In addition to deleting the network profile, you can also try to remove the adapter settings via the registry. After you remove the settings, you can go back to method 1 and try to remove the adapter. To remove the settings, open the registry editor (click on Start and type in regedit.msc), and navigate to the following key:



HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services - Tcpip - Parameters - Interfaces


You’ll see several items listed with a long series of random numbers. If you click on each one, you’ll see the IP address that is assigned to that network adapter.



enter image description here



You can confirm which network adapter corresponds to that registry key by opening a command prompt (Start and type cmd) and typing in ipconfig.



enter image description here



As you can see, Ethernet adapter is the one that has an IP address of 192.168.1.233. So you would delete the key under Interfaces that starts with {73123f2a-ad10-4f4b-900e…}. If you click on a different interface, one of them will have the IP 192.168.247.1, which corresponds to the VMWare Network Adapter on the computer. Again, this only deletes the settings for the adapter, not the adapter itself. Restart the computer and try Method 1 again.



For further information please referto the following link:



https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/






share|improve this answer



















  • 1




    First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
    – Run5k
    Nov 13 at 15:32













up vote
0
down vote










up vote
0
down vote









I am not sure if this is right but worked for me:
https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/





UPDATE




Source: Unable to Delete Network Adapter in Windows 10?




Method 1 – Use Device Manager



The first thing you can try to do is open Device Manager (click on start and type device manager), expand Network Adapters, and then right-click on the network adapter you want to remove.



enter image description here



Here, you will see an option called Uninstall device. This should hopefully not be greyed out. If it is, continue to the next method. When you select uninstall device, another window will appear asking to confirm the uninstall.



enter image description here



You’ll also see an option to delete the driver software for the device. If you want to completely remove the network adapter, I suggest selecting this option to remove the driver also. If all goes well, you should see that the adapter has been removed from both Device Manager and the list of network adapters in Control Panel.



If you don’t see the device listed here, you can try to click on View and then Show hidden devices.



Method 2 – Delete Network Profile



We can also try to delete the network profile via the command line and then try Method 1 again. First, you have to open an elevated command prompt by clicking on Start, typing in CMD and then right-clicking on command prompt and choosing Run as Administrator.



Now type in the following command to see all wired (Ethernet) adapters:



netsh lan show profiles


If you need to remove a wireless adapter, type this command:



netsh wlan show profiles


If you get some error message about the Wired or WLAN AutoConfig service not running, then click on Start, type in services.msc, right-click on the appropriate service and choose Start.



enter image description here



Now when you run the command, you should see a list of profiles. In my case, I only have one profile on this computer.



enter image description here



Next, type in the following command, which will delete the desired interface.



netsh lan delete profile interface="InterfaceName"


Again, if it’s a wireless interface, use wlan instead of lan. The interface name is listed at the top of each heading (Profile on interface name) when you ran the show profiles command. Once the profile has been deleted, restart your computer and try Method 1 again.



Method 3 – Remove Adapter Settings via Registry




IMPORTANT



If you need to edit the registry, make sure you backup the registry first.




In addition to deleting the network profile, you can also try to remove the adapter settings via the registry. After you remove the settings, you can go back to method 1 and try to remove the adapter. To remove the settings, open the registry editor (click on Start and type in regedit.msc), and navigate to the following key:



HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services - Tcpip - Parameters - Interfaces


You’ll see several items listed with a long series of random numbers. If you click on each one, you’ll see the IP address that is assigned to that network adapter.



enter image description here



You can confirm which network adapter corresponds to that registry key by opening a command prompt (Start and type cmd) and typing in ipconfig.



enter image description here



As you can see, Ethernet adapter is the one that has an IP address of 192.168.1.233. So you would delete the key under Interfaces that starts with {73123f2a-ad10-4f4b-900e…}. If you click on a different interface, one of them will have the IP 192.168.247.1, which corresponds to the VMWare Network Adapter on the computer. Again, this only deletes the settings for the adapter, not the adapter itself. Restart the computer and try Method 1 again.



For further information please referto the following link:



https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/






share|improve this answer














I am not sure if this is right but worked for me:
https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/





UPDATE




Source: Unable to Delete Network Adapter in Windows 10?




Method 1 – Use Device Manager



The first thing you can try to do is open Device Manager (click on start and type device manager), expand Network Adapters, and then right-click on the network adapter you want to remove.



enter image description here



Here, you will see an option called Uninstall device. This should hopefully not be greyed out. If it is, continue to the next method. When you select uninstall device, another window will appear asking to confirm the uninstall.



enter image description here



You’ll also see an option to delete the driver software for the device. If you want to completely remove the network adapter, I suggest selecting this option to remove the driver also. If all goes well, you should see that the adapter has been removed from both Device Manager and the list of network adapters in Control Panel.



If you don’t see the device listed here, you can try to click on View and then Show hidden devices.



Method 2 – Delete Network Profile



We can also try to delete the network profile via the command line and then try Method 1 again. First, you have to open an elevated command prompt by clicking on Start, typing in CMD and then right-clicking on command prompt and choosing Run as Administrator.



Now type in the following command to see all wired (Ethernet) adapters:



netsh lan show profiles


If you need to remove a wireless adapter, type this command:



netsh wlan show profiles


If you get some error message about the Wired or WLAN AutoConfig service not running, then click on Start, type in services.msc, right-click on the appropriate service and choose Start.



enter image description here



Now when you run the command, you should see a list of profiles. In my case, I only have one profile on this computer.



enter image description here



Next, type in the following command, which will delete the desired interface.



netsh lan delete profile interface="InterfaceName"


Again, if it’s a wireless interface, use wlan instead of lan. The interface name is listed at the top of each heading (Profile on interface name) when you ran the show profiles command. Once the profile has been deleted, restart your computer and try Method 1 again.



Method 3 – Remove Adapter Settings via Registry




IMPORTANT



If you need to edit the registry, make sure you backup the registry first.




In addition to deleting the network profile, you can also try to remove the adapter settings via the registry. After you remove the settings, you can go back to method 1 and try to remove the adapter. To remove the settings, open the registry editor (click on Start and type in regedit.msc), and navigate to the following key:



HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services - Tcpip - Parameters - Interfaces


You’ll see several items listed with a long series of random numbers. If you click on each one, you’ll see the IP address that is assigned to that network adapter.



enter image description here



You can confirm which network adapter corresponds to that registry key by opening a command prompt (Start and type cmd) and typing in ipconfig.



enter image description here



As you can see, Ethernet adapter is the one that has an IP address of 192.168.1.233. So you would delete the key under Interfaces that starts with {73123f2a-ad10-4f4b-900e…}. If you click on a different interface, one of them will have the IP 192.168.247.1, which corresponds to the VMWare Network Adapter on the computer. Again, this only deletes the settings for the adapter, not the adapter itself. Restart the computer and try Method 1 again.



For further information please referto the following link:



https://www.online-tech-tips.com/computer-tips/unable-delete-network-adapter-windows-10/







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 at 19:35

























answered Oct 25 at 16:10









Kamran

1312




1312








  • 1




    First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
    – Run5k
    Nov 13 at 15:32














  • 1




    First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
    – Run5k
    Nov 13 at 15:32








1




1




First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
– Run5k
Nov 13 at 15:32




First of all, Welcome to Super User! We always appreciate the contributions from our community members, but please do not provide answers that are only a hyperlink. While the information may be valuable, if the source web page ever goes offline the answer is essentially useless. Quote all of the pertinent excerpts from the article within your answer, then you can still provide the hyperlink to cite your source. Please see the following article from our Help Center: How do I write a good answer?
– Run5k
Nov 13 at 15:32


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1192492%2fhow-to-remove-a-hyper-v-virtual-ethernet-switch%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

QoS: MAC-Priority for clients behind a repeater

Ивакино (Тотемский район)

Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)