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 [email protected]
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