Friday, December 4, 2015

Generating Active mailbox user list in Exchange 2010


In EMS

Get-MailboxServer | Get-Mailbox | foreach-object {$email = $_.primarysmtpaddress; $_ | Get-MailboxStatistics | where{$_.DisconnectDate -eq $null}| select DisplayName, @{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, StorageLimitStatus, LastLogonTime,DeletedItemCount,@{Name="EmailAddress";expression={$email}}} | Format-Table

With help from various sources online

Add to export to csv

| epcsv c:\ActiveMailboxes.csv

1 comment:

  1. You wrote this post very carefully. The amount of information is stunning and also a gainful article for us. Keep sharing this kind of articles, Thank you.flash drive recovery london

    ReplyDelete