Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Each time I create (or recreate) a virtual machine in Hyper-V using one of my SysPrep'ed images, I usually end up having to do a quick Internet search for:
device manager show hidden devices
I'm a little embarrassed to say that I simply can't remember the environment variable that I need to set in order to remove what I call "stale" network adapters in Device Manager.
Note that if you don't properly export/import a VM in Hyper-V (and instead simply copy VHDs around like I often do), then you'll end up with a network adapter named something like ""Microsoft Virtual Machine Bus Network Adapter #2" (and a hidden network adapter named "Microsoft Virtual Machine Bus Network Adapter").
I'm not aware of any issues by not deleting these network adapters, but I still like to clean them up anyway.
Here is the process that I use to cleanup the network adapters:
Start an administrator command prompt and then run the following two commands:
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
In the Device Manager window:
You should now have exactly one VM Bus network adapter (and one Microsoft ISATAP Adapter).
Also, just in case it's not completely obvious, you should do this cleanup before configuring any network settings like DNS servers or a static IP address.
Perhaps if the environment variable was devmgmt_show_hidden_devices (instead of devmgr_show_nonpresent_devices) then I could actually remember it ;-)
Please sign in to use this experience.
Sign in