The dsquery
command line tool is mentioned in the solution to several questions about Active Directory. However, my workstation does not have this command line tool. Where do I get it?
It is available if you have the Active Directory Domain Services (AD DS) server role installed. To use dsquery, you must run the dsquery command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.
dsquery is a command-line utility that can be used to query Active Directory for information from a system within a domain. It is typically installed only on Windows Server versions but can be installed on non-server variants through the Microsoft-provided Remote Server Administration Tools bundle.
To search for the LDAP configuration, use the “ldapsearch” command and specify “cn=config” as the search base for your LDAP tree. To run this search, you have to use the “-Y” option and specify “EXTERNAL” as the authentication mechanism.
Even better than dsquery is the adfind and admod tools from joeware
Much more powerful.
For Windows 7, it's part of the Remote Server Administration Tools (RSAT) feature pack:
http://www.microsoft.com/en-us/download/details.aspx?id=7887
This can be used for W2003 and W2008 servers.
Information on how to install these with the dism command can be found in my blog post.
For Windows 8, it's on:
http://www.microsoft.com/en-us/download/details.aspx?id=28972
This one is for managing W2012 servers:
http://www.microsoft.com/en-us/download/details.aspx?id=7887
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With