This is an old revision of the document!
Homepage: Dsquery at Microsoft
Dsquery is a command-line tool that is built into Windows Server 2008. 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 server
dsquery server -d <domain>
dsquery server -forest
dsquery subnet -limit 0 | dsget subnet | select-string <sitename>