Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Listing Domain Controllers

by fritz1968 (Sexton)
on Sep 23, 2010 at 14:05 UTC ( #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 (Archbishop) 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
Node Status?
node history
Node Type: note [id://861542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-10-17 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (92 votes). Check out past polls.

    Notices?