PowerShell Microsoft365 - Check users without litigation hold being enabled.

  • Welcome to ITBible, we're your #1 resource for enterprise or homelab IT problems (or just a place to show off your stuff).

WizardTux

Administrator
Staff member
Diamond Supporter
Partner
TCC-OG
Network Engineer
Sep 22, 2022
188
14
153
Shawnee, Kansas, USA
itbible.org
This is a pretty simple one, but it gives you a list of users where litigation hold is not enbaled.

PowerShell:
Connect-ExchangeOnline -UserPrincipalName <global-admin-account>
Get-Mailbox | Where-Object { $_.LitigationHoldEnabled -eq $false }