WIN32 - get the GUID of a Network Device

Tim Golden mail at timgolden.me.uk
Mon Apr 26 04:14:24 EDT 2010


On 26/04/2010 09:06, Richard Lamboj wrote:
> is there a way to get the GUID from a Network Device?

Are you talking about the MAC address? If so, here's
one way:

<code>
import wmi

for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration ():
   print nic.caption, "=>", nic.MACAddress

</code>

If you're not, then which GUID are you referring to?

TJG



More information about the Python-list mailing list