in reply to Re^2: Listing Domain Controllers
in thread Listing Domain Controllers

"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.

Replies are listed 'Best First'.
Re^4: Listing Domain Controllers
by fritz1968 (Sexton) on Sep 23, 2010 at 14:21 UTC
    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!