When working with my lab virtual machines, after a migration from Hyper-V to VMware there are hardware network adapters that have been removed due to the migration with their network configurations remaining in the registry. Removing these have always been a pain, after a little searching I came across this Tech Net article.. for Windows XP.
I tried this in Windows 2008 R2 and it worked a treat.
- Click Start, point to All Programs, point to Accessories, and then click Command Prompt.
- At a command prompt, type the following command , and then press ENTER:
- Type the following command a command prompt, and then press ENTER:
- Troubleshoot the devices and drivers in Device Manager.
NOTE: Click Show hidden devices on the View menu in Device Manager before you can see devices that are not connected to the computer.
- When you finish troubleshooting, close Device Manager.
- Type exit at the command prompt.
Note that when you close the command prompt window, Window clears the devmgr_show_nonpresent_devices=1 variable that you set in step 2 and prevents ghosted devices from being displayed when you click Show hidden devices
This worked very well and I was able to configure my new virtual NIC’s with no annoying alerts about duplicate registry profiles for network adapters.
Hope this helps.
All information is provided on an AS-IS basis, with no warranties and confers no rights.