Skip to main content
IT BIBLESign in

Forum / Off-Topic & Miscellaneous / Scripting & Programming

Microsoft365 - Check users without litigation hold being enabled.

WizardTux Cool Guy OP
Oct 11, 2022, 1:15 PM UTC
#1

This is a pretty simple one, but it gives you a list of users where litigation hold is not enbaled.

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

Sign in to reply.