Hi Les & Howard,

Many thanks for your help I have got the script to translate a display name to return the username, however it also returns the DNS and seems to suppress the zero at the beginning of the username.

Code:
$UserDistinguishedName = TranslateName (1, "kingsnortongirl", 4, "VICTORIA BENNETT", 1)[0]
? $UserDistinguishedName


returns

Code:
 C=uk2BenneT,OU=Curriculum2002,OU=Curriculum,DC=kingsnortongirls,DC=bham,DC=sch,D



Is there a way I can just display the username and not all of the OU and domain info? (the 2bennet bit is the usename returned successfully!)

Cheers

Ranj.
_________________________
IT Kings Norton Girls School