what is it that you need? the name of any logged on users?

WMIQuery does that fairly easily:
$remoteuser=wmiquery("UserName","Win32_ComputerSystem",$Computer)
_________________________
How to ask questions the smart way <-----------> Before you ask