Hey Guys -
Quick question - we have a domain with numerous OUs nested within each other. Most are in the format below:
- AD Root
The "Location" parent is the name of physical location and we have many across the country. What I am trying to do is create / locate a script or tool which will do the following:
- Obtain a list of members (device) in a specific "Location" OU (including children)
- Create an AD security group named after the "Location" which contains the same members
I can see where this may be doable fairly easily if I wanted to make a group named after an OU which the devices were immediately in, but am actually needing it to be the name of the OU one level up. I've got about 200 - 300 of these I want to create.
Any suggestions? Thanks!