Question Find Organisation Unit has Users has subnode in ActiveDirectory

srenu

New member
Joined
Apr 7, 2014
Messages
1
Programming Experience
Beginner
ADSP.PNG

I need to find whether a OrganisationUnit has node Users. Below is a sample of ActiveDirectory.
For example OU=AHSC is having sub node OU=Users Then i want to copy the Object Name of OU=Users which is something like this - OU=Users,OU=AHSC,DC=sf,DC=sp,DC=edu,DC=sg
I want all OU which has subnodes OU=Users
I tried to achieve with DirectorySearcher, i am able to read entire data in AD but i want only OU with subnode OU=Users.
Hope I am clear.
 
Back
Top Bottom