Alternative to DisableDHCPMediaSense flag to achieve the IP of NIC without cable connected
Hi, 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? Thank you. Marco
October 11th, 2010 8:31am

Hi, please try to use Windows XP Mode for test: Install and use Windows XP Mode in Windows 7 If the issue occurs, I suggest you asking MSDN Forum for further help: http://social.msdn.microsoft.com/Forums/en-US/categories The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding. This link maybe helpful to you: http://msdn.microsoft.com/en-us/library/aa394216(VS.85).aspx Hope it helps. Regards, Leo HuangPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
October 13th, 2010 4:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics