Yes, I did look though the win32::NetAdmin. GetServers looked to be the most promising, but I could not figure out how to list just the Domain Contollers. It seems that it listed everything but the Domain Contollers... including the workstations... and we have 50k+ workstations here.
I would assume that any of the following SV codes would list the servers:
SV_TYPE_SERVER
SV_TYPE_DOMAIN_CTRL
| [reply] |
"Yes, I did look though the win32::NetAdmin. GetServers looked to be the most promising, but I could not figure out how to list just the Domain Contollers."
Did you miss the GetDomainController and GetAnyDomainController functions? They are the second and third functions listed in the docs.
| [reply] [d/l] [select] |
Yes, I found both of those functions (GetDomainController and GetAnyDomainController). However, I want to list ALL of the domain contollers.. not necessarily the PDC, which GetDomainController does, or any one Domain Contoller, which GetAnyDomainController does.
I am using GetDomainController without any problems.
Thanks for your suggestions. I do appreciate it!
| [reply] |