dsquery can be used to retrieve any active directory attribute or filter for any active directory attribute using LDAP filter;
Ex: find user with employeeid=1234
dsquery * -filter (employeeid=1234) -attr attribute_name
to retrieve all active directory attribute user star (
-attr *);
thanks, was looking for this code!!
ReplyDeleteactive directory query