Borrowed from the thread below.

 Code:
$objSysInfo = CreateObject("ADSystemInfo")
$strUser 	= $objSysInfo.UserName
$objUser	= GetObject("LDAP://" + $strUser)
 
$strMail 	= $objUser.mail


http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=179911
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.