Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / July 2008



Tip: Looking for answers? Try searching our database.

Enum Servers and machines on the network.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry C - 10 Oct 2006 14:50 GMT
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

Signature

Jerry

Charles Wang[MSFT] - 11 Oct 2006 08:01 GMT
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.
======================================================
Yannick LANCHEC - 09 Jul 2008 13:27 GMT
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

> Hi Jerry,
> My understanding of your issue is that:
[quoted text clipped - 33 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> ======================================================
Charles Wang[MSFT] - 13 Oct 2006 11:48 GMT
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!

Charles Wang
Microsoft Online Community Support
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.