Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ms:win:querydcs [2023/05/16 13:33] – created cams:win:querydcs [2023/05/16 13:46] (current) ca
Line 3: Line 3:
 Query Domain Controllers via Command Line Query Domain Controllers via Command Line
  
-<code bash>nltest /dclist:</code>+==== Command dsquery ====
  
 +The dsquery command lists the servers of the current domain if no other parameter is specified
 +
 +<code bash>
 +dsquery server
 +
 +dsquery server -d <domain>
 +
 +dsquery server -forest
 +</code>
 +
 +
 +
 +==== Command nltest ====
 +
 +If <domain> will be left out from the /dclist parameter the DC's of the current domain will be shown
 +
 +<code bash>
 +nltest /dclist:<domain>
 +
 +nltest /dclist:
 +</code>
 +
 +
 +
 +==== Command netdom ====
 +
 +The netdom command lists the servers of the current domain if parameter -domain is not specified
 +
 +<code bash>
 +netdom query dc
 +
 +netdom query dc -domain <domain>
 +</code>