Rocco... See EnumDHCP() - uses DHCPCMD.exe to return assigned addresses

This will tell you the name of whoever is logged onto that PC:
$remoteuser=wmiquery("UserName","Win32_ComputerSystem",$computer)

look into Inquisitor on my Kix page for code that pings and checks names...
_________________________
How to ask questions the smart way <-----------> Before you ask