Remove an unused/hidden network connection so that an existing name can be reused











up vote
1
down vote

favorite












How can I safely remove a network connection that is no longer visible in Control PanelAll Control Panel ItemsNetwork Connections on Windows 10?



I want to reuse the name of a previously existing connection, "USB Ethernet", so that I can programmatically find this connection on multiple PCs if it exists.



When I try to rename one of the connections I get the following error message: "Cannot rename this connection. A connection with the name that you specified already exists. Specify a different name."



See: https://drive.google.com/uc?id=0B6dFu9niJIpEU0pYX1NiS0dhNlk



There are no hidden adaptors in Device Manager: https://support.microsoft.com/en-gb/help/315539/device-manager-does-not-display-devices-that-are-not-connected



Other posts mention editing the registry and removing the GUID that represents that specific connection under:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetwork



However, this connection may be referenced in other places within the registry. How can I safely remove the connection and all its references?



There are many unused/hidden connections on my machine according to the registry: Local Area Connection* 11, Local Area Connection* 2, Local Area Connection* 7 etc.










share|improve this question


























    up vote
    1
    down vote

    favorite












    How can I safely remove a network connection that is no longer visible in Control PanelAll Control Panel ItemsNetwork Connections on Windows 10?



    I want to reuse the name of a previously existing connection, "USB Ethernet", so that I can programmatically find this connection on multiple PCs if it exists.



    When I try to rename one of the connections I get the following error message: "Cannot rename this connection. A connection with the name that you specified already exists. Specify a different name."



    See: https://drive.google.com/uc?id=0B6dFu9niJIpEU0pYX1NiS0dhNlk



    There are no hidden adaptors in Device Manager: https://support.microsoft.com/en-gb/help/315539/device-manager-does-not-display-devices-that-are-not-connected



    Other posts mention editing the registry and removing the GUID that represents that specific connection under:
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetwork



    However, this connection may be referenced in other places within the registry. How can I safely remove the connection and all its references?



    There are many unused/hidden connections on my machine according to the registry: Local Area Connection* 11, Local Area Connection* 2, Local Area Connection* 7 etc.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      How can I safely remove a network connection that is no longer visible in Control PanelAll Control Panel ItemsNetwork Connections on Windows 10?



      I want to reuse the name of a previously existing connection, "USB Ethernet", so that I can programmatically find this connection on multiple PCs if it exists.



      When I try to rename one of the connections I get the following error message: "Cannot rename this connection. A connection with the name that you specified already exists. Specify a different name."



      See: https://drive.google.com/uc?id=0B6dFu9niJIpEU0pYX1NiS0dhNlk



      There are no hidden adaptors in Device Manager: https://support.microsoft.com/en-gb/help/315539/device-manager-does-not-display-devices-that-are-not-connected



      Other posts mention editing the registry and removing the GUID that represents that specific connection under:
      HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetwork



      However, this connection may be referenced in other places within the registry. How can I safely remove the connection and all its references?



      There are many unused/hidden connections on my machine according to the registry: Local Area Connection* 11, Local Area Connection* 2, Local Area Connection* 7 etc.










      share|improve this question













      How can I safely remove a network connection that is no longer visible in Control PanelAll Control Panel ItemsNetwork Connections on Windows 10?



      I want to reuse the name of a previously existing connection, "USB Ethernet", so that I can programmatically find this connection on multiple PCs if it exists.



      When I try to rename one of the connections I get the following error message: "Cannot rename this connection. A connection with the name that you specified already exists. Specify a different name."



      See: https://drive.google.com/uc?id=0B6dFu9niJIpEU0pYX1NiS0dhNlk



      There are no hidden adaptors in Device Manager: https://support.microsoft.com/en-gb/help/315539/device-manager-does-not-display-devices-that-are-not-connected



      Other posts mention editing the registry and removing the GUID that represents that specific connection under:
      HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetwork



      However, this connection may be referenced in other places within the registry. How can I safely remove the connection and all its references?



      There are many unused/hidden connections on my machine according to the registry: Local Area Connection* 11, Local Area Connection* 2, Local Area Connection* 7 etc.







      windows-10 windows-registry network-adapter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 10 '17 at 13:24









      matt.baker

      5615




      5615






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          For wired connection:



          Type the command



          netsh lan show profiles, press Enter to obtain all wired network profiles.



          netsh lan delete profile name="WiredProfileName"



          For wireless connection:



          Type the command



          netsh wlan show profiles



          netsh wlan delete profile name="WirelessProfileName"



          Besides that, go into the following registry entryL



          HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles



          Find those unused network profile by right pane profile name, delete them(GUID).






          share|improve this answer























          • Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
            – matt.baker
            Oct 11 '17 at 9:17












          • were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
            – Waka
            Oct 12 '17 at 3:12










          • These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
            – matt.baker
            Oct 12 '17 at 5:36










          • go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
            – Waka
            Oct 12 '17 at 5:55










          • Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
            – matt.baker
            Oct 18 '17 at 11:43











          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%2f1257859%2fremove-an-unused-hidden-network-connection-so-that-an-existing-name-can-be-reuse%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          For wired connection:



          Type the command



          netsh lan show profiles, press Enter to obtain all wired network profiles.



          netsh lan delete profile name="WiredProfileName"



          For wireless connection:



          Type the command



          netsh wlan show profiles



          netsh wlan delete profile name="WirelessProfileName"



          Besides that, go into the following registry entryL



          HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles



          Find those unused network profile by right pane profile name, delete them(GUID).






          share|improve this answer























          • Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
            – matt.baker
            Oct 11 '17 at 9:17












          • were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
            – Waka
            Oct 12 '17 at 3:12










          • These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
            – matt.baker
            Oct 12 '17 at 5:36










          • go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
            – Waka
            Oct 12 '17 at 5:55










          • Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
            – matt.baker
            Oct 18 '17 at 11:43















          up vote
          0
          down vote













          For wired connection:



          Type the command



          netsh lan show profiles, press Enter to obtain all wired network profiles.



          netsh lan delete profile name="WiredProfileName"



          For wireless connection:



          Type the command



          netsh wlan show profiles



          netsh wlan delete profile name="WirelessProfileName"



          Besides that, go into the following registry entryL



          HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles



          Find those unused network profile by right pane profile name, delete them(GUID).






          share|improve this answer























          • Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
            – matt.baker
            Oct 11 '17 at 9:17












          • were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
            – Waka
            Oct 12 '17 at 3:12










          • These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
            – matt.baker
            Oct 12 '17 at 5:36










          • go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
            – Waka
            Oct 12 '17 at 5:55










          • Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
            – matt.baker
            Oct 18 '17 at 11:43













          up vote
          0
          down vote










          up vote
          0
          down vote









          For wired connection:



          Type the command



          netsh lan show profiles, press Enter to obtain all wired network profiles.



          netsh lan delete profile name="WiredProfileName"



          For wireless connection:



          Type the command



          netsh wlan show profiles



          netsh wlan delete profile name="WirelessProfileName"



          Besides that, go into the following registry entryL



          HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles



          Find those unused network profile by right pane profile name, delete them(GUID).






          share|improve this answer














          For wired connection:



          Type the command



          netsh lan show profiles, press Enter to obtain all wired network profiles.



          netsh lan delete profile name="WiredProfileName"



          For wireless connection:



          Type the command



          netsh wlan show profiles



          netsh wlan delete profile name="WirelessProfileName"



          Besides that, go into the following registry entryL



          HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles



          Find those unused network profile by right pane profile name, delete them(GUID).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 12 '17 at 3:16

























          answered Oct 11 '17 at 9:04









          Waka

          77524




          77524












          • Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
            – matt.baker
            Oct 11 '17 at 9:17












          • were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
            – Waka
            Oct 12 '17 at 3:12










          • These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
            – matt.baker
            Oct 12 '17 at 5:36










          • go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
            – Waka
            Oct 12 '17 at 5:55










          • Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
            – matt.baker
            Oct 18 '17 at 11:43


















          • Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
            – matt.baker
            Oct 11 '17 at 9:17












          • were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
            – Waka
            Oct 12 '17 at 3:12










          • These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
            – matt.baker
            Oct 12 '17 at 5:36










          • go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
            – Waka
            Oct 12 '17 at 5:55










          • Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
            – matt.baker
            Oct 18 '17 at 11:43
















          Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
          – matt.baker
          Oct 11 '17 at 9:17






          Thanks for the idea. Unfortunately it's not showing the hidden connections, just the ones already displayed in the Windows Network Connections UI
          – matt.baker
          Oct 11 '17 at 9:17














          were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
          – Waka
          Oct 12 '17 at 3:12




          were those wired or wireless network profile? Above netsh lan & netsh wlan would show all network profiles in your computer.
          – Waka
          Oct 12 '17 at 3:12












          These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
          – matt.baker
          Oct 12 '17 at 5:36




          These were wired connections. When I ran the netsh lan show profiles command it only showed Ethernet and Ethernet 2.
          – matt.baker
          Oct 12 '17 at 5:36












          go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
          – Waka
          Oct 12 '17 at 5:55




          go into the following registry entryL HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles Find those unused network profile by right pane profile name, delete them(GUID).
          – Waka
          Oct 12 '17 at 5:55












          Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
          – matt.baker
          Oct 18 '17 at 11:43




          Sorry for the delay in responding. The registry location you mention doesn't list the connections I mentioned unfortunately (only profiles). It seems bad practice just deleting a GUID as I cannot be sure it isn't referenced in another placed leading to broken links.
          – matt.baker
          Oct 18 '17 at 11:43


















          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%2f1257859%2fremove-an-unused-hidden-network-connection-so-that-an-existing-name-can-be-reuse%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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy