Get dsquery and other tools useful for debugging Active Directory issues

active-directorydsquery

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?

Best Solution

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