5.19.2014

AD Powershell query to get total number of users

AD Powershell Query to get total number of users

Get-ADUser -SearchBase "Distinguished Name of OU" -Filter * | measure

Get-ADUser -SearchBase "OU=Accounts,OU=RootOU,DC=ChildDomain,DC=RootDomain,DC=com" -Filter *

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.