#spammail #spoofing #deletemail
https://microsoftandbeyond.blogspot.c...
To delete a spam or spoofing email from all users’ mailboxes in Office 365 using the admin center and PowerShell, you can follow these steps:
Using Office 365 Admin Center
Assign Permissions: Ensure you have the necessary permissions. You need to be part of the eDiscovery Manager role group.
Create a Content Search:
Go to the Microsoft 365 compliance center.
Navigate to Content search under Solutions.
Create a new search and specify the criteria (e.g., subject, sender) to identify the spam email.
Review Search Results: Verify that the search results include the emails you want to delete.
Delete Emails:
After confirming the search results, you can use the New-ComplianceSearchAction cmdlet in PowerShell to delete the emails.
Using PowerShell
Connect to Security & Compliance PowerShell:
Connect-IPPSSession
Create a Compliance Search:
New-ComplianceSearch -Name "SpamEmailSearch" -ExchangeLocation All -ContentMatchQuery 'subject:"Spam Subject"'
Start the Search:
Start-ComplianceSearch -Identity "SpamEmailSearch"
Delete the Emails:
New-ComplianceSearchAction -SearchName "SpamEmailSearch" -Purge -PurgeType SoftDelete
These steps will help you remove the spam email from all users’ mailboxes. If you need more detailed instructions, you can refer to the Microsoft documentation1
Watch video How to delete a spam Spoofing email from all user's mailbox using Office 365 admin & PowerShell|2024 online without registration, duration hours minute second in high quality. This video was added by user Microsoft & beyond 28 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 480 once and liked it 14 people.