Get a Quick Count of Users in Each OU

You never know when you need odd little tidbits of information out of Active Directory. Here’s a quick script you can run using the Active Directory Module for PowerShell to get a count of users in each of your OUs. Just replace “ou=Employees,dc=domain,dc=com” with the CN path to OU you use for all user accounts.   $BaseOU = “ou=Employees,dc=domain,dc=com” $DNs = (Get-ADOrganizationalUnit -Filter * –SearchBase […]

Read Me 4 Comments