It works. You just need to tell the function which network card to check by providing the Mac Address. EnumNetworkConnections is one way...

 Code:
for each $nc in Enumnetworkconnections(3) 
    $ConnectionName=split($nc,",")[0] 
    $MACAddress=split($nc,",")[1] 
    $AdapterName=split($nc,",")[2] 
    if instr($ConnectionName,"Local Area Connection")
      ? "DHCPEnabled:  " + getipoptions("DHCPEnabled",,$MacAddress)
      ? "-------------"
    endif
next


EnumNetworkConnections() -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=139601

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943