digitalco
asked on
Delete emails from users Inboxes
Hi
This morning, an email went out to a whole bunch of people that shouldn't have! HR and management have now asked us if there's a way to remove the message from users' mailboxes before Monday morning. There are hundreds of mailboxes, so going into each one is not an option...any idea? We have the sender, recipient, and subject of this offending message.
Running Exchange 2007 SP2.
This morning, an email went out to a whole bunch of people that shouldn't have! HR and management have now asked us if there's a way to remove the message from users' mailboxes before Monday morning. There are hundreds of mailboxes, so going into each one is not an option...any idea? We have the sender, recipient, and subject of this offending message.
Running Exchange 2007 SP2.
ASKER
Thanks...so reading around I would use this command below:
Get-Mailbox -Database DB1 | Export-Mailbox -TargetMailbox ExportMailbox -TargetFolder VirusData -SubjectKeywords "Virus message" -DeleteContentDo you know how I would use this command if I had the users in a text/CSV file?
Also, does this work on one mailbox at a time, or can do multiple?
Get-Mailbox -Database DB1 | Export-Mailbox -TargetMailbox ExportMailbox -TargetFolder VirusData -SubjectKeywords "Virus message" -DeleteContentDo you know how I would use this command if I had the users in a text/CSV file?
Also, does this work on one mailbox at a time, or can do multiple?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ExMerge is a tool from Exchange 2003 but works on 2007 also
http://www.petri.co.il/delete_messages_from_mailboxes_by_using_exmerge.htm
http://www.petri.co.il/delete_messages_from_mailboxes_by_using_exmerge.htm
ASKER
How about:
Get-Content c:\users.txt | Get-Mailbox | Export-Mailbox -SubjectKeywords "Virus message" -DeleteContent
Get-Content c:\users.txt | Get-Mailbox | Export-Mailbox -SubjectKeywords "Virus message" -DeleteContent
ASKER
?? Anyone - and is there a way I can see a log of how we're progressing?
What you wrote there looks about right - did you test and find that it didnt work?
More information / confirmation of method - http://msexchangeguru.com/2011/05/06/delete-email/
More information / confirmation of method - http://msexchangeguru.com/2011/05/06/delete-email/
https://www.experts-exchange.com/questions/24278630/Remove-a-single-email-from-all-Exchange-2007-mailboxes.html
http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/c9025ff3-cf29-48ca-b17d-f98bb64c6bcf/