<br><br><div class="gmail_quote">On Sun, May 15, 2011 at 2:14 PM, Andrew Berg <span dir="ltr"><<a href="mailto:bahamutzero8825@gmail.com">bahamutzero8825@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
</div>One thing I found out about Win32_NetworkAdapterConfiguration is that it<br>
only contains /current/ information and not the stored info that it uses<br>
when making an initial connection (you can see and edit this info in the<br>
Network and Sharing Center applet). The difference is that if you're<br>
offline, that WMI object will have no useful info at all. You can find<br>
the info in the registry if you know what the UUID (or whatever it is)<br>
of (or assigned to) the interface (it's in<br>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces).<br>
The OP said the card would be connected, so it might not be an issue,<br>
but I think it's important to know that. Wouldn't want you to suddenly<br>
get blank strings or exceptions and not know why. ;-)<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div>Thanks for the reminder, however, it seems the IPAddress of Win32_NetworkAdapterConfiguration will be 0.0.0.0 if the interface is NOT connected (at least that is the result on my winxp), so I think we are safe here. ^_^</div>
</div><br>