This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ms:win:querydcs [2023/05/16 13:33] – created ca | ms: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> | + | ==== 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 < | ||
+ | |||
+ | dsquery server -forest | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== Command nltest ==== | ||
+ | |||
+ | If < | ||
+ | |||
+ | <code bash> | ||
+ | nltest / | ||
+ | |||
+ | nltest /dclist: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== 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 < | ||
+ | </ | ||