Windows 7 NIC Detection Issue / Script to Remove then Add the NIC Back
One of my customers has been having an intermittent issue with their Windows 7 VDI Desktops. Occasionally after they update the Operating System, when the desktops boot back up they fail to use their NICs. The NIC is still attached to the VM and is still on the right network, but Windows fails to recognize it (it doesn’t get a DHCP address and, in fact, registers within the OS as being physically disconnected from the network). Restarting the desktop doesn’t help, reinstalling drivers doesn’t help (we’re using the VMXNET3 network adapter, for those who are interested). Removing the adapter from Windows seems to be the key to getting the desktop back online. We’ve gotten desktops back online by removing the adapter from Device Manager and then scanning for hardware changes (and rebooting). We’ve also removed the NIC from the VM (with the VM shut down) and replaced it; that’s also alleviated the issue. Unfortunately, those steps just alleviate the...