There are WMI methods to query the logged on user name but I have better results from NETUSERS from www.systemtools.com
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.