I am performing a exchange migration and need to delete a specific type of message from all users mailbox. Message Class = IPM.Note.EAS - this was used for the old archiving system. I can do it manually from Outlook by logging on to each user's mailbox - doing an advanced find and selecting the Message Class = IPM.Note.EAS. and delete the message. I would rather not do it manually for each user (100+).
I am looking for a way to delete these messages using a commandlet. I was looking export-mailbox with a filter to select the message class and use the delete function.