Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enum Servers and machines on the network.

5 views
Skip to first unread message

Jerry C

unread,
Oct 10, 2006, 9:50:03 AM10/10/06
to
I am starting a project to search for machines and servers and their shares
on the network I wonder if anyone can point to any articles on the subject.
The networks may or may not have a domain so I will need both types of finds.
There are several sets of utilites out there which is best (ADSI, WINAPI,
UPnP, system.IO, wmi ) and probably others.
Thank you for your help

--
Jerry

Charles Wang[MSFT]

unread,
Oct 11, 2006, 3:01:34 AM10/11/06
to
Hi Jerry,
My understanding of your issue is that:
You want to know how to enumerate your machines and servers and their
shares on your network by some API.
If I have misunderstood, please let me know.

I recommend that you use Network Management API to retrive the computers,
you can refer to:
NetServerEnum
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/net
mgmt/netserverenum.asp

For the net shares, you can refer to the API for Network Share Management:
NetShareEnum
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/
netsharedel.asp

Also, you can use ADSI APIs to access active directory to enumerate related
objects:
IADsComputer
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/i
adscomputer.asp

If you have any other questions or concerns, please feel free to let me
know. It's my pleasure to be of assistance.

Sincerely,
Charles Wang
Microsoft Online Community Support

======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================

Charles Wang[MSFT]

unread,
Oct 13, 2006, 6:48:11 AM10/13/06
to
Hi,

I am interested in this issue. Would you mind letting me know the result of
the suggestions? If you need further assistance, feel free to let me know.
I will be more than happy to be of assistance.

Have a great day!

LANCHEC@discussions.microsoft.com Yannick LANCHEC

unread,
Jul 9, 2008, 8:27:00 AM7/9/08
to
Hi,

NetEnumServer requires a browser in the network, so for you what is the best
method to enum servers (pdc, bdc and others) in the network without using the
browser.

i think that you can get PDC and BDC in OU=Domain Controllers, but others
servers from the domain ? what is the best solution to recognize them from
normal stations ?

Yannick LANCHEC

0 new messages