Display the number of members of each OU in your AD

Display the number of members of each OU in your AD, recursivelly from the one you specify as parameter.

Remember to specify an OU.

Example: .\CountOUMembers.ps1("Computers") or .\CountOUMembers.ps1 "Computers"

Anonymous
Parents
No Data
Comment
  • This script is awesome and works pretty well for me - with one exception. In my AD structure I have four separate "Athletics" OUs and when I run the script it gets stuck when it hits the first instance of that OU. It will then just keep spitting out the same line showing the number of computers in that one Athletics OU. Is there any way to get around this issue and have the script complete successfully? Thanks.

Children
No Data