so, for AD you actually use:
code:
$oDefautNamingContext = GetObject("LDAP://rootDSE").Get("defaultNamingContext")
$ldap="LDAP://"+@domain+"/"+$oDefautNamingContext

_________________________
!

download KiXnet