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?
I recommend using powershell. When you have a Windows 7 or Vista machine (with domain join) you can install RSAT and use the provided cmndlets
This code gives you the dnsname and the current ipv4-address (if running; using the cmdlet test-connection).
3 answers to 3 questions:
Netsh dhcp server scope 10.0.0.0 show clients
I would probably use VBScript or PowerShell to do the following:
operatingsystem
attribute,