Allen,

The code works fine for me. Though as mentioned you can't assume the name of the NIC and use that, otherwise it may not be true and you will have no results.

If the Admin knows the name(s) of his/her NICs then fine, otherwise maybe just show as an EXAMPLE in the UDF Header a method to remotely gather the names of the NICS. Then it's up to the Admin to script and get the information he/she wants.

Testing against Glenn's code shows that his UDF
NICINFO
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=150379

Is about .2 to .4 seconds faster running, but it does not return the MAC address. He could add the WMI code to get it, but then I'm sure speed wise both solutions would be similar in speed.

The nice thing about Glenn's approach is that it does not require WMI - though that is less and less of an issue for most Administrators.