in NT Reskit there was a tool to list all DHCP servers in subnet.
Don't know the name actually but know that it's there because we had once a mix of Networks in one of our Centers and this one helped me to spot the looney
so, my code might be better or even faster. take all the servers in your corp into array and check their registry or wmi for running DHCP server-service
I don't think that your environment changes too often or even dynamically regarding DHCP Servers, so this is kind of listing/surveillance script easily done by doing
Can you tell us why you need to find DHCP servers? It might help in the end solution. Are you having problems with people bringing up unauthorized DHCP servers?
BreakerBreaker
Hey THIS is FUN
Registered: 2001-06-15
Posts: 268
Loc: Yorkshire, England
Rad,
I know this a bit off topic (apologies for that) but is there any chance you could post what you're doing with WoL? I'm interested in using it for our remote disaster recovery site, but not sure what would be a good way to implement/use the technology.
Rad, All Windows 2000 DHCP servers are registered in Active Directory, so it should be simple enough to query AD for them. I was looking for a COM method but so far have only found the following Q article.