08 April 2013

Query active directory with dsquery


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 *);

1 comment: