Below powershell helps to get the list of user count from the Active Directory
$Domain = 'LDAP://DC=domain;DC=com'$Root = New-Object DirectoryServices.DirectoryEntry $Domain$select = New-Object DirectoryServices.DirectorySearcher$select.SearchRoot = $root $adobj= $select.findall() |? {$_.properties.objectcategory -match "CN=Person"}$adobj.count
Regards,Krishnahttp://smtpport25.wordpress.com