Run LDAP query in windows

Active Directory

Running LDAP query from a command line

It is very useful to run an LDAP query against active directory on a windows PC which has no specific tools for this. We can reach the dialog below by various means, such as adding a local user to a group, however it is more convinient to run it independently



Open command line and run:

%SystemRoot%\SYSTEM32\rundll32.exe dsquery,OpenQueryWindow

Find Users and Contacts

Select "Custom Search"
Custom Search



Then select the "Advanced" tab where you can enter the LDAP query directly:

Ldap Query


Post a Comment

Previous Post Next Post