How to count number of attachments in a mailbox?

Hi everybody,

I want to count the number of attachments in mailbox. Kindly help me.

Thanks & regards,

Talib Hussain




  • Edited by talib2608 Wednesday, January 21, 2015 5:49 AM
January 21st, 2015 8:44am

You can do that by enumerating every message in every folder that has attachment using EWS and then count them one by one. Its a time consuming process see http://gsexdev.blogspot.com.au/2013/09/exchange-attachment-statistics.html for a sample script

Cheer
Glen

Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2015 5:55am

Hi Glen,

I saw that script. It there some other way?

February 13th, 2015 8:57am

Hi Glen,

Get-MailboxStatistics & Get-MailboxFolderStatistics are helpful regarding items, not attachments. And that too, both commands give wrong information. Actual data present in a mailbox is different, Get-MailboxStatistics give different results & Get-MailboxFolderStatistics give different results.

Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 5:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics