Count Users in AD OU
For SPLA Licencing , we have to report the amount of users we have in AD, which can be quite a pain, the more ADs and OUs are there.
With this one-liner you can get those numbers quicker.
(Get-ADUser -Filter * -SearchBase "ou=<OuName>,dc=<DomainName>,dc=local").count