Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Listing Domain Controllers

by fritz1968 (Sexton)
on Sep 23, 2010 at 14:05 UTC ( [id://861542]=note: print w/replies, xml ) Need Help??


in reply to Re: 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. 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

Replies are listed 'Best First'.
Re^3: Listing Domain Controllers
by marto (Cardinal) on Sep 23, 2010 at 14:10 UTC

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

      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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://861542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-23 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found