Script to recall message from all mailboxes in Exchange 2007-2010
Posted on 2011-03-15
Can anyone help me to build an script to do
Given a DL, or distribution group in AD that contains multiple sub-DLs and users.
Given an Exchange server, or multiple Exchange/Databases
Delete a message for all users in that DL and /or exchange/database server with subject is Virus, and export deleted messages into another mailbox?
I have this pw shell command for a single user and works fine
Get-Mailbox xxxx | Export-Mailbox -SenderKeywords "firstname.lastname@example.org" -SubjectKeywords "Virus" -StartDate "12/07/2010 7:09:00" -EndDate "12/07/2010 7:11:00" -TargetMailbox xxxxxxxx -TargetFolder ConfidentalData -Deletecontent -confirm:$false
Please be aware I am not a programmer, please indicate as many details as you can
Thank you in advance