Request: Script to output number and type of objects under certain OU’s

Hi there. Just throwing this out there in case anyone has anything already built. I’m looking to get an output of just the number and type of objects under a certain tree of my AD. So the format is such:

*Domain *Companies *Company1 *Computers *Users *Company2

I’d want everything under the Companies OU. So, for Company1, I’d like to know how many user objects, computer objects, Group objects, etc. Same for Company2, Company3, etc.

Anyone got anything? Cheers!

submitted by /u/USAPrimeCreditPeggy
[link] [comments]

Leave a Reply