nourben
asked on
Remove one email accross mailboxes
I need to remove one specific email fro all mailboxes across the organization, We have Exchnage 2007
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to pipe in another command first, such as:
get-maillbox -server exchangeservername | Export-Mailbox -SubjectKeywords "keyword" -DeleteContent
This will do the jon for the entire mailbox server.
get-maillbox -server exchangeservername | Export-Mailbox -SubjectKeywords "keyword" -DeleteContent
This will do the jon for the entire mailbox server.
ASKER
Is there a way to export to a PST file before the delete
Yes, you can use the -PSTFolderpath switch.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Export-Mailbox -Server "ServerName" -SubjectKeywords "This is my test message." -DeleteContent