<disclaimer - this is not my work - I horked it from somewhere, I am just sharing it>
Do you have a lot of users? Do you wish you could list them by size, name, number of items?
Get-MailboxStatistics | sort-object -descending totalItemSize | select -first 5 | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label=”Mailbox Size(MB)”}, itemcount, lastlogontime
Change the “select -first 5″ to whatever number you like.
No comments:
Post a Comment