Exchange "active users" report
Does anyone know of a way to generate a report that shows all active exchange users? By active I mean I want the report to exclude any mailboxes that are associated with a disabled AD account. This is on Exchange 2010.
I did not see a flag for this using get-mailbox or get-mailboxstatistics.
I did not see a flag for this using get-mailbox or get-mailboxstatistics.
Comments
-
undomiel Member Posts: 2,818
Just have to branch a little farther out.Get-User | where {$_.UserAccountControl -notmatch "Disabled" -and $_.RecipientType -eq "UserMailbox"} | Get-MailboxStatistics
Jumping on the IT blogging band wagon -- http://www.jefferyland.com/