Re: How can I get list of computers in a domain?
From: William DePalo [MVP VC++] (willd.no.spam_at_mvps.org)
Date: 06/30/04
- Next message: William DePalo [MVP VC++]: "Re: _beginthreadex VS CreateThread in vc 7.1"
- Previous message: Vinayak Raghuvamshi: "Re: How can I get list of computers in a domain?"
- In reply to: Peter Steele: "How can I get list of computers in a domain?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 29 Jun 2004 23:51:42 -0400
"Peter Steele" <psteele@z-force.com> wrote in message
news:eq$QOhiXEHA.312@TK2MSFTNGP12.phx.gbl...
> I've found some VB code to query a domain controller to return the list of
> all computers in that domain. The VB code is reasonably straightforward
(see
> below). How do I do the equivalent in C++? I've done a lot of searches and
> haven't come up with much useful information. Any pointers would be
> appreciated:
I'm not expert at either VB or Active Directory Services but that's what I
think your snippet is using. You may want to start reading here
and then perhaps find an Active Directory newsgroup for information on its
object model.
On the other hand if you are looking for an answer to the question in the
subject line then I'd suggest that you search the docs for NetServerEnum()
for the pre-AD way of enumerating the workstations in a domain.
Regards,
Will
- Next message: William DePalo [MVP VC++]: "Re: _beginthreadex VS CreateThread in vc 7.1"
- Previous message: Vinayak Raghuvamshi: "Re: How can I get list of computers in a domain?"
- In reply to: Peter Steele: "How can I get list of computers in a domain?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|