Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Find an OU Within All Managed Units Powershell

$
0
0

I'm looking for a set of powershell commands that will allow me to search for a provided OU name within the container for all Managed Units (so the DN is "CN=Managed Units,CN=Configuration") and return the Managed Unit that the group falls under.

 

As a rough example the structure would be similar to:

 

>Configuration

     >Managed Units

          >Managed Unit Container

          >Managed Unit Container

               >Managed Unit

                    >OU group I want

               >Managed Unit Container

          >Managed Unit

 

In the tree sctructure you can see it will be a variety of managed unit containers and managed units at different levels of the tree. I'm just not sure how to traverse the sctructure to find the nessecary managed unit that holds the given OU group. Any Ideas? Thanks!


Viewing all articles
Browse latest Browse all 1277

Trending Articles