JSI Tip 8241. How can I return a list of domain controllers without using NETDOM?

When you use NETDOM QUERY DC to return a list of domain controllers, it returns:

List of domain controllers with accounts in the domain:
DC1
DC2
...
DCn
The command completed successfully.
It is much easier to use the output of DSQUERY SERVER -O RDN in a script, as it returns:
DC1
DC2
...
DCn



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish