Exchange 2010 introduced the database availability group (DAG), which enables you to design a mailbox resiliency configuration that is essentially a redundant array of independent Mailbox servers. Multiple copies of each mailbox database are distributed across these servers to enable mailboxes to remain available during one or more server.
i am trying to customize my query so that the result show only mailboxes which are 5mb or less
Get-MailboxStatistics -database ' Sort totalitemsize -desc select displayname,totalitemsize
Problem is, Get-MailboxStatistics output just a display name - not unique and cant really be used as such. The other half of the information you need is in Get-Mailbox :- found answer in following link. once you have the data on all your mailboxes, and the output can be IMPORTED into excel you can do all your sorting etc and delete whatever you dont want
if this is what you were looking for, please click this link and give the guy some credit.. i didnt come up with this, i just found it
go to AD and pull all users *view advanced features add column exchange mailbox store, email addresscombine both these lists in excel and enjoy a smile and a coke... you just finished 1 week of work in under 20 minutes
J. SteenHow to export a list of mailbox user names with their mailbox size and item count in decending order.
Get-MailboxStatistics -Database 'Mailbox Database XXXXXXXXXXXXX' Select DisplayName, ItemCount, TotalItemSize Sort-Object TotalItemSize -Descending Export-CSV C:MBSizes.csv
Alter the mailbox database number and the export address as required.
If you found this How-to useful, don't forget to spice it up!
A script I use regularly, and a great example of how Powershell makes things easy to manage in Exchange 2010. Thanks for posting.
Nice!
Thanks
I replaced the -Database with -Server to get all mailboxes in my org. Works great! Thanks for putting this here. I searched google for a half hour not finding the correct syntax.
Thanks for the comments guys; it's one of those things which used to be so easy to find in the GUI of Exchange 2003 but then totally disappeared into PowerShell in 2010. Took me an age to find so I'm happy to share the knowledge!
Wow..microsoft took the one of the most useful things out of exchange and replaced it with a shell command. My god...they are as bad as everyone says.
So instead of simply clicking on a column addition...i know have to spend 5 or 10 minutes researching everyone few months on how to do this. Man...I wish I could meet this guy whose idea this was face to face...
Thanks!
Thanks..... so easy with all these explanations. Cool.
Excelente, funciona perfecto, muchas gracias......
Sweet!
slick. Thanks.
Exactly what I needed Thanks!
This was excellent. Thank you!
Thank you, worked like a charm :-)
Thanks you loads, this is exactly what I needed. Perfect :o)
Thank you finally I found what I was looking for . perfect