Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to make a report with a list of the largest messages on an Exchange 2010 server. I looked through the commands that I could use, and Get-MailboxStatistics isn't granular enough - I need to find individual messages >25MB and print their size, user account, and subject. This is for a migration to Google Apps, so I can figure out who (if anyone) has these huge emails Apps won't accept.

share|improve this question

From what I can see, you can use Multi-Mailbox Search in conjunction with Advanced Query Syntax to perform a search of specific characteristics. I don't have much else to give you but those pointers.

share|improve this answer

Ideally I'd want to be able to do something with Powershell. The only thing I could come up with is the following:

Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery “Size:>25MB” -TargetMailbox SomeMailbox -TargetFolder Export -LogOnly -LogLevel Full

This would give you a log entry for of all the messages that meet your criteria in whatever mailbox you specify (in this case SomeMailbox) in the Export folder. The -LogOnly parameter makes sure it doesn't actually copy the messages in question to the specified mailbox/folder.

share|improve this answer
I will try this and get back to you. Thank you! – user65712 Apr 19 '11 at 23:06
Keep in mind I have no Exchange 2010 server to test this on. I'm just going off of documentation here. Proceed with caution. Do it on a singular test mailbox first. Make use of the -whatif parameter too. – pk. Apr 20 '11 at 1:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.