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


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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: