Arjun babu
Arjun babu

Reputation: 617

Is there any windows functions to get all OU(Organizational Unit) name using the domainName?

i want to get all OU name using the domain name.

But i cant use C#,i want it from any windows functions or C++.

Can anyone tell about it?

Upvotes: 2

Views: 702

Answers (1)

Soonts
Soonts

Reputation: 21956

You may use e.g. ADSI ADO provider for that.

Here's the sample for VBScript. You can easily port the code into C++, just use the #import directive.

Upvotes: 1

Related Questions