Enumerate Domain

  • Thread starter Thread starter Jeff Grundy
  • Start date Start date
J

Jeff Grundy

How do I enumerate the machines domain, then enumerate the
shares of a machine?
 
Hello Jeff,

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.

Network Management Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/net
mgmt/network_management_functions.asp

Since they are unmanaged APIs, you may use P/Invoke to call them from
within your .NET managed application:
Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

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.

Ask a Question

Back
Top