There's also fnWMILoggedIn() - Retrieves users/computers connected to a computer for both local/remote user lists but but it was not reliable for me. I prefer to use the NETUSERS utility... works every time.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.