--
Jerry
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.
======================================================
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!
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