Count Computers in a OU

 

Get-ADComputer -SearchBase "OU=Computers,DC=contoso,DC=com" -Filter * | Measure-Object

© selimatmaca.com. All Rights Reserved.