Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get dsquery and other tools useful for debugging Active Directory issues?

Tags:

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?

like image 857
Brandon DuRette Avatar asked Jun 01 '09 21:06

Brandon DuRette


People also ask

Where can I find Dsquery?

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.

What is Dsquery used for?

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.

How do I use Ldapsearch on Windows?

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.


2 Answers

Even better than dsquery is the adfind and admod tools from joeware

Much more powerful.

like image 33
benPearce Avatar answered Sep 25 '22 04:09

benPearce


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

like image 121
Eelco L. Avatar answered Sep 22 '22 04:09

Eelco L.