The purpose of this script is to go through every single item in a mailbox and produce a report listing the class (or type) of each item and how many items of each class were found in the mailbox:
Processed 52 folders and 19163 items.
Name Value
---- -----
IPM.Appointment 194
IPM.Appointment.ReadiManagerMeeting 2
IPM.Contact 164
IPM.Note 16911
IPM.Note.Exchange.ActiveSync.MailboxLog 2
IPM.Note.Microsoft.Conversation 1616
IPM.Note.Microsoft.Conversation.Voice 67
IPM.Note.Microsoft.Missed 2
IPM.Schedule.Meeting.Canceled 3
IPM.Schedule.Meeting.Request 43
IPM.Schedule.Meeting.Resp.Neg 3
IPM.Schedule.Meeting.Resp.Pos 20
IPM.Schedule.Meeting.Resp.Tent 2
IPM.Sharing 120
IPM.StickyNote 14
I created this script to have an idea of how items had been archived by EnterpriseVault across users’ mailboxes (IPM.NOTE.EnterpriseVault.Shortcut class). The script reports on all item classes, but it can easily be changed to only look for a particular class, such as EV stubs for example.
To download the complete final script, please head on to the TechNet Script Gallery.
Hello Nuno,
Do you happen to have a copy of the script. I am trying to workout a way to report on messageclass of the mailbox.
Thank you
Hi Niro,
Sure! You can get it from here: https://github.com/NunoFilipeMota/PublicScripts/blob/main/CountEmailsByType.ps1
Regards,
Nuno
I was looking for a way to run your wonderfull script bulk, for many mailboxes at once?
Any solution please?
I’m afraid I don’t have a script for that, but you could easily update the existing one and add a ForEach loop to go through all the mailboxes you want to analyse!
Regards,
Nuno