troubleshooting Question

How do I enumerate all users and groups from a trusted domain from a child

Avatar of iunknown21
iunknown21Flag for United States of America asked on
C#Visual C++.NETActive Directory
8 Comments1 Solution2119 ViewsLast Modified:
Hello all,

I don't like the where my code is going, so I figured I would ask some guidance.

I need to enumerate all the users and groups when I'm pointed to a child domain.  

Our product needs to load users and groups for very high-speed group membership checking so we can't query the AD in real time.  Normally, this isn't a problem since we can enumerate users and groups just fine when pointing at the PDC.

But...when pointing at a child domain our code is loading the users and groups from the child but not the trusted parent.

Right now, it seems to me that I have to:
1. enumerate all the users and global groups of the child domain
2. figure out what domains the child trusts and then enumerate all the users and global groups for each one.

There has to be a easier way.  Any ideas?


Chris Dent
PowerShell Developer
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros