hi,
i wrote a tool to configure your network adapter from the command line -
this shows you how to retrieve the MAC address
http://www.leastprivilege.com/UPDATE...Windows21.aspx
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> I know I can use System.Management library, but it returns like 6
> different
> values all
> of which look like MAC addresses. Which one do I pick and how do I
> identify
> it?
> ManagementClass oMClass = new ManagementClass
> ("Win32_NetworkAdapterConfiguration");
> ManagementObjectCollection colMObj = oMClass.GetInstances();
>
> foreach(ManagementObject objMO in colMObj)
>
> {
>
> if(objMO["MacAddress"] != null)
>
> MACAddress += objMO["MacAddress"].ToString();
>
> }
>