Link to home
Start Free TrialLog in
Avatar of nourben
nourbenFlag for United States of America

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
Avatar of IamTheMorsa
IamTheMorsa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nourben

ASKER

It work on my mailbox but accross the mailboxes should I use

Export-Mailbox -Server "ServerName" -SubjectKeywords "This is my test message." -DeleteContent
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.
Avatar of nourben

ASKER

Is there a way to export to a PST file before the delete
Yes, you can use the -PSTFolderpath switch.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial