DrZl0

Email Clean Script

Feb 23rd, 2021
401
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Import-Module ExchangeOnlineManagement
  2.  
  3. $UserPrincipalName = Read-Host "Please put your UserPrincipalName"
  4. Connect-IPPSSession -UserPrincipalName $UserPrincipalName
  5.  
  6. $SearchName = Read-Host "Name of the Content Search"
  7.  
  8. New-ComplianceSearchAction -SearchName $SearchName -Purge -PurgeType HardDelete
  9.  
  10. Get-ComplianceSearchAction
RAW Paste Data