Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

delete emails from exch 2010 datastores / users mailboxes

I need the ability to search through my exchange 2010 environment and delete emails from users mailboxes. Could be as many as 500 users who recieve a piece of mail that I need to clean from the databases/users mailboxes. Whats the best method to achive this?
0
DEFclub
Asked:
DEFclub
1 Solution
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Something like this

Get-Mailbox -Database mailboxdb | Export-Mailbox -SubjectKeywords "Virus message" -DeleteContent
http://www.techieshelp.com/delete-mail-from-multiple-mailboxes/

Get-Mailbox -Server "Server Name" | Search-Mailbox -SearchQuery 'Subject: "Parameter"' -DeleteContent
http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/99c87346-9725-4406-b605-adb466984f0f

- Rancy
0
 
DEFclubAuthor Commented:
thxs
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now