Hello,
is it possible, using the LanManager-API, to enumerate all domains in a network?
Thank you,
Thomas
Printable View
Hello,
is it possible, using the LanManager-API, to enumerate all domains in a network?
Thank you,
Thomas
Probably...this response is based on theory, not actual testing. You could use the NetServerEnum() function with the SV_TYPE_DOMAIN_CTRL flag to return a list of all primary domain controllers, then query each one using NetGetDCName() to determine the domain name. I suspect that you may need Domain Admin privileges to execute either or both of these calls, but they should give you the information you need.
Cheers!
Humble Programmer
,,,^..^,,,