Get dsquery and other tools useful for debugging Active Directory issues


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:

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:

This one is for managing W2012 servers: