Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-07-19 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (403 votes). Check out past polls.

    Notices?