I would like to list all machines names from a domain and their current ip if they are online. I am thinking of using dsquery on the domain controller to list all machines.
I am wondering:
- Will it work if i have distributed domain controllers on various locations?
- Do i need to run it on the Primary Domain Controller?
- Is there an alternative?