Skip to content

Instantly share code, notes, and snippets.

@Torxsmind
Created January 24, 2020 21:21
Show Gist options
  • Select an option

  • Save Torxsmind/9988f6f33133fbd1ad6ae595fc468eec to your computer and use it in GitHub Desktop.

Select an option

Save Torxsmind/9988f6f33133fbd1ad6ae595fc468eec to your computer and use it in GitHub Desktop.
O365 Litigation Hold Export
Get-Mailbox -ResultSize Unlimited | Where {$_.LitigationHoldEnabled -match "True"} | Select Name,LitigationHoldDate,AccountDisabled | Sort-Object Name | Export-CSV -Path c:\temp\lit-hold.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment