Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import-Module ExchangeOnlineManagement
- $UserPrincipalName = Read-Host "Please put your UserPrincipalName"
- Connect-IPPSSession -UserPrincipalName $UserPrincipalName
- $SearchName = Read-Host "Name of the Content Search"
- New-ComplianceSearchAction -SearchName $SearchName -Purge -PurgeType HardDelete
- Get-ComplianceSearchAction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement