Code:

$Userldap = TranslateName(1, @domain, 3, @domain+'\'+@userid, 1)
$UserProperties = GetObject("LDAP://"+$Userldap)
$FirstName = $userProperties.FirstName
$LastName = $userProperties.LastName
$Description = $userProperties.Description
$emailaddr = $userProperties.mail
$UserProperties = 0


you'll need the translatename UDF from the UDF forum
_________________________
How to ask questions the smart way <-----------> Before you ask