Solved

Need to delete a Message Class from mail store

Posted on 2008-06-25
3
2,572 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
ID: 21872291
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
ID: 21874573
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
ID: 21956049
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

920 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

15 Experts available now in Live!

Get 1:1 Help Now