Hi, I'm using vs2005, .net 2 for a C# windows appliation.
forest = Forest.GetCurrentForest();
///This gets me all the domains of a forest. How can I get just the 1 level
of sibling domains? I know how to drill down to the children domain but not
sure how to get the sibling domains.
Thank you.
You need to get the RootDomain property from the Forest object and then
drill down through the Children property on the Domain object to get the
tree.
Joe K.

Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
> Hi, I'm using vs2005, .net 2 for a C# windows appliation.
> forest = Forest.GetCurrentForest();
[quoted text clipped - 4 lines]
> sure how to get the sibling domains.
> Thank you.
Pucca - 02 Oct 2007 21:47 GMT
Thanks Joe. That's exactly what I needed, thank you.

Signature
Thanks.
> You need to get the RootDomain property from the Forest object and then
> drill down through the Children property on the Domain object to get the
[quoted text clipped - 10 lines]
> > sure how to get the sibling domains.
> > Thank you.