Friday, March 6, 2009

count ad objects

PS C:\test> get-qadobject -SizeLimit 0 | where {$_.type -eq "user" -or $_.type -eq "group" -or $_.type -eq "computer" -or $_.type -eq "organizationalunit"} | sort type| group type | format-table Name,Count -auto 

Name               Count 
----               ----- 
computer               7 
group                 48 
organizationalUnit     7 
user                  53 



How Many Objects?

No comments: