Remove an unused/hidden network connection so that an existing name can be reused
Remove hidden adapter: Proposed solution:
Steps:
1) Remove adapter from: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkSetup2\Interfaces
2) use https://github.com/jschicht/RunAsTI to grand needed permissions
There is a much easier way.
1- Open Device Manager
and in View
tab enable Show hidden devices
.
2- Find the device linked to network interface you want to remove
3- Remove the device (it is not necessary to remove the drivers)
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_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
Find those unused network profile by right pane profile name, delete them(GUID).