virtualcenter


Our IT journal

Deleting an email on all mailboxes in 365

This process is designed to delete emails delivered to your own tenant in Microsoft 365.   Grant yourself the eDiscovery role: Go to https://purview.microsoft.com/ Edit eDiscovery Manager and add your user.     Open up Powershell:   Import-Module ExchangeOnlineManagement Connect-IPPSSession -UserPrincipalName [email protected]   Create a Compliance search (check the query) New-ComplianceSearch -name “Search22” -ExchangeLocation all -ContentMatchQuery ‘subject:”Subject of the email … Read More