Skip to content

Instantly share code, notes, and snippets.

@Trimad
Last active June 9, 2022 17:54
Show Gist options
  • Save Trimad/e26b628b6274f9236e7f2017b34778ad to your computer and use it in GitHub Desktop.
Save Trimad/e26b628b6274f9236e7f2017b34778ad to your computer and use it in GitHub Desktop.
Purge Phishing Emails from MS365
Connect-IPPSSession -UserPrincipalName user@company.com
New-ComplianceSearchAction -SearchName "name of the content search" -Purge -PurgeType SoftDelete
Get-ComplianceSearchAction -Identity "name of the compliance action"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment