My PowerShell

Windows Powershell scripts, examples, tips, docs …

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

More information about Powershell http://en.wikipedia.org/wiki/Windows_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 [...]