(Get-ADUser -filter *).count
(Get-AdUser -filter * |Where {$_.enabled -eq "True"}).count (Get-ADUser -filter * |Where {$_.enabled -ne "False"}).count
(Get-ADUser -filter * -searchbase "OU=unidadeoganizacional, DC=dominio, DC=Local").count
(Get-ADGroupMember -Identity "NomedoGrupo").count
for ($num = 01 ; $num -le 09 ; $num++){New-ADGroup -Name TestGroup_$num -SamAccountName TestGroup_$num -DisplayName TestGroup_$num -GroupScope Global -GroupCategory Security -Path "OU=test,OU=Groups,DC=gugainfo,DC=local"}