John Yassa's Blog

Home » Exchange 2010 » Get mailboxes with mailboxes grater than 1 GB in size

Get mailboxes with mailboxes grater than 1 GB in size

You can run the below command to get the Display Name and the size of the mailbox only and export them to TXT file named result in the path c:\result.txt
get-mailbox -resultsize unlimited | Get-MailboxStatistics | Where {$_.TotalItemSize -Gt 1GB} | Sort-Object -Property TotalItemSize -Descending | Format-Table DisplayName, TotalItemSize >c:\result.txt

You can run the below command to get all the Mailbox info and export them to TXT file named result in the path c:\result.txt
get-mailbox -resultsize unlimited | Get-MailboxStatistics | Where {$_.TotalItemSize -Gt 1GB} | Sort-Object -Property TotalItemSize -Descending | Fl >c:\result.txt


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: