first of all I hope this is the right forum for my question.
On Windows 7 I use the WMI object in order to set/achieve the IPv4 address of 2 NICs and generally 1 of them isn't connected to a network (the cable is unplugged).
During the iteration of WMI Win32_NetworkAdapterConfiguration objects the setup of the NIC without cable failed. On windows XP I had the same problem but using the DisableDHCPMediaSense flag solves the problem.
In the last days I search on the internet for some information but I don't found anything of usefull for my purpose.
How can have the IP configuration of an unplugged network card through WMI class?
View Complete Post