Good, 'cause I'd have to track you down and beat you into submission with wet noodles if you weren't.

As for your issue above, the output format is DOMAIN\userid, so
$_UserName = Split(fnWMILoggedIn(), '\')[1]

This splits the output of the function into a 2 element array on the "\" char, and stores only the second element into the $_UserName var - no need to know the length of the domain name that way.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D