Skip to content

Instantly share code, notes, and snippets.

@chadmando
Created October 9, 2020 16:18
Show Gist options
  • Save chadmando/4e4507e0bad467aee66e2684c9993bbd to your computer and use it in GitHub Desktop.
Save chadmando/4e4507e0bad467aee66e2684c9993bbd to your computer and use it in GitHub Desktop.
Disable Litigation Hold using Exchange Online Powershell V2 module
Get-EXOMailbox -PropertySets Minimum, Hold |
Where-Object {$_.RecipientTypeDetails -eq "UserMailbox" -and $_.LitigationHoldEnabled -eq $True} |
Set-Mailbox -LitigationHoldEnabled $False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment