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 "email@example.com" -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