Solved

Need to delete a Message Class from mail store

Posted on 2008-06-25
3
2,565 Views
Last Modified: 2008-08-03
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.

Ideas?

Thanks!
0
Comment
Question by:e_vanheel
  • 2
3 Comments
 
LVL 3

Assisted Solution

by:prav007
prav007 earned 100 total points
Comment Utility
Please find an example listed below


Export and delete all messages that contain "Confidential" in their subject from all mailboxes from the DB1 database to a folder called ConfidentialData in the Administrator mailbox:

Get-mailbox -database 'DB1' | export-mailbox SubjectKeywords "Confidential" -TargetFolder "ConfidentialData" -TargetMailbox Administrator DeleteContent

 
0
 
LVL 6

Author Comment

by:e_vanheel
Comment Utility
Thanks prav007,

I need to delete a specific message class not just search for a keyword.
0
 
LVL 6

Accepted Solution

by:
e_vanheel earned 0 total points
Comment Utility
I think this should work.  It will take one day to show up as I believe it runs with the maintenance cycle.

New-ManagedContentSettings -FolderName Inbox -MessageClass IPM.Note.eas -Name RemoveArchiveStubs -RetentionEnabled $true -RetentionAction MoveToDeletedItems -AgeLimitForRetention "1"
0

Featured Post

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now