Virtualization, Cloud, Infrastructure and all that stuff in-between

My ramblings on the stuff that holds it all together

POSH 1-Liners: Count the number of enabled Active Directory accounts in PowerShell

(get-aduser -filter *|where {$_.enabled -eq “True”}).count

Handy!

Also – another useful post to create a load of valid-looking AD accounts for your lab..

http://www.wictorwilen.se/how-to-use-powershell-to-populate-active-directory-with-plenty-enough-users-for-sharepoint

Leave a comment