My PowerShell

Windows Powershell scripts, examples, tips, docs …

Welcome to – your friendly source for Windows PowerShell scripts, tips and code examples.

More information about Powershell

View number of User Accounts in AD and Mailboxes in Exchange (0)

3/02/15 •

There are a few examples to display how many users you have in AD, how many users that are enabled and also how many that are disabled. Number of User Accounts (get-aduser –filter *).count Number of Enabled User Accounts (get-aduser -filter *|where {$_.enabled -eq “True”}).count Number of Disabled User Accounts (get-aduser -filter *|where {$_.enabled -ne [...]