I"m not sure about the shares, but you can use DirectoryServices. Here's an
article I posted a while back that will get you all of the resources in AD:
Thanks for your post. You can take a look at Network Management Functions.
For example, calling NetGetJoinInformation to get a computer's domain name,
and NetShareEnum() to enumerate the shares of a machine.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.