i solved it by add one level each time and wait for user's action to loop through next level which can split query into multiple small queries which take much less time for each run.
Get OU list from active directory using c# with hierarchy
-
14-07-2023 - |
Question
I want to retrieve OU structure from active directory using c# into a treeview So far I found Acquiring AD OU list I have tested, it worked fine,this is good to get a flat list of all OUs without any hierarchies.
How could I get hierarchical list with the extent of above method ? I am using .net 2.0 and VS 2010
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow