Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

directoryservices.accountmanagement

0 views
Skip to first unread message

vadim

unread,
Oct 13, 2009, 10:56:47 PM10/13/09
to
Hi,

Is it possible to enumerate all OUs on a domain using functions in
directoryservices.accountmamangement namespace?

If not is it possible to do this somehow else?

Thank you,

Vadim


Joe Kaplan

unread,
Oct 14, 2009, 9:37:16 AM10/14/09
to
You would probably want to do this with SDS instead. Just do a subtree
search for (objectCategory=organizationalUnit) at the domain root with a
DirectorySearcher. Note that this won't necessarily show you the nesting
arrangement of the OUs though.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"vadim" <vadim@dontsend> wrote in message
news:%23dt%23NkHT...@TK2MSFTNGP02.phx.gbl...

vadim

unread,
Oct 14, 2009, 3:42:48 PM10/14/09
to
Thank you, I'll try this.
"Joe Kaplan" <joseph....@removethis.accenture.com> wrote in message
news:%23edMzNN...@TK2MSFTNGP06.phx.gbl...
0 new messages