question

NiroshanSelvarajah-0774 avatar image
0 Votes"
NiroshanSelvarajah-0774 asked YukiSun-MSFT commented

Exchange Mailbox Report on Messageclass

Hello All,
Is there a way to find out what type of messages are in a user mailbox and the count.
Example: Find out the Items based on Message class. What we want to do is check how many archived Items are there in the mailbox and the number of items not archived.
Thank you

windows-server-powershelloffice-exchange-server-administration
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Your question is more related with exchange, I will remove PowerShell tag and add the corresponding exchange tag. Thank you!

0 Votes 0 ·

1 Answer

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered YukiSun-MSFT commented

Hi @NiroshanSelvarajah-0774,

To the best of my knowledge, you might need to use EWS script in order to find items based on message class. Here are some relevant links for your reference:
List number of messages by message class Exchange 2007
Exchange 2010 : Search and Delete Items by MessageClass [ EWS method

If you need further help on writing the EWS script, it's recommended to post with the tag "office-exchange-server-dev" which is dedicated for Exchange development issues.

However, regarding to the example mentioned in your post, which is about counting the archived items in a mailbox, do you mean you would like to know the items in the archive mailbox of a user? If this is the case, you can take advantage of the Get-MailboxFolderStatistics cmdlet with the -archive parameter. For example, to view the statistics for User1's archive mailbox, the following command can be used:

 Get-MailboxFolderStatistics -Identity user1 -Archive | Format-Table Identity,ItemsInFolderAndSubfolders

97444-1.jpg

If you want to view the statistics for User1's primary mailbox, you can use the above command without the -archive parameter.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1.jpg (34.2 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NiroshanSelvarajah-0774,

Just checking in to see if above information was helpful. If you have any questions or need further help on this issue, please feel free to post back.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·

@YukiSun-MSFT ,
Thank you for the details and input, Looks like I might have to look at the EWS method because the Archive we are looking to report on is Veritas Enterprise Vault Items, Not Microsoft Exchange Archiving.

0 Votes 0 ·
YukiSun-MSFT avatar image YukiSun-MSFT NiroshanSelvarajah-0774 ·

Thanks @NiroshanSelvarajah-0774 for the response. Then in that case, yes, you might need to look into the EWS script method.

0 Votes 0 ·