When rename a network adapter in Windows
:
1 | PS C:\> Rename-NetAdapter -Name Ethernet -NewName Mellanox |
an error Rename-NetAdapter : {Object Exists} An attempt was made to create an object and the object name already existed thrown.
Work around solution is:
- Open Device Manager in Windows Control Panel
- Under menu View enable Show hidden devices
- Uninstall the old network adapter with the old name
- Then rename the network adapter again
References
- Registry mismatch Get-NetAdapter, https://stackoverflow.com/questions/42220423/registry-mismatch-get-netadapter