Forum Discussion
jstump1972
Jul 10, 2020Copper Contributor
Deleting malicious emails from all O365 mailboxes
Please assist me with a exch ps o365 script to remove email from all o365 mailboxes by subject line or sender email address. I cannot seem to find the right command to do in cloud.
VasilMichev
Jul 10, 2020MVP
Just to add the eDiscovery method as well, as Search-Mailbox might disappear at any time now: https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messages-in-your-organization?view=o365-worldwide