Mailbox and User Counts with PowerShell
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 �False�}).count
- Number of Exchange Mailboxes
(get-mailbox -ResultSize Unlimited ).count
- Number of Distribution Groups in Exchange
(Get-DistributionGroup).count
About this post
Posted: 2022-08-25
By: dwirch
Viewed: 189 times
Categories
Tip
Exchange
Active Directory
Scripting
Powershell
PowerShell Code Cache
Attachments
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.