?
=?ISO-8859-1?Q?Herbert_VON_GR=DCNENWALD?=
of the net interface ?
thanks
thanks
Adrian said:Hi!
Use the code below:
System.Management.SelectQuery sq = new
System.Management.SelectQuery("Win32_NetworkAdapterConfiguration",
"IPEnabled='TRUE'");
System.Management.ManagementObjectSearcher searcher = new
System.Management.ManagementObjectSearcher(sq);
foreach (System.Management.ManagementObject mos in searcher.Get())
{
MessageBox.Show(mos.GetPropertyValue("MACAddress").ToString());
}
Hope that helps.
Best regards, Adrian.