SELECT cn, mail FROM 'LDAP://Dc=mydomainname, DC=COM' --replace this with your domain info WHERE objectClass = 'user' AND objectCategory = 'person'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)