Also, you can simplify this even further..

$macaddr = WMIQuery("MACAddress","Win32_NetworkAdapter") if you want to have this run for a local or remote machine.

But, with the Code you have, you can replace it to be simply:
$macaddr=@ADDRESS

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's