Get all cloud users who on Litigation hold and/or InPlace hold

How do i get all users who are either on Litigation hold or InPlace hold. I am able to get litigation hold users with this command,

Get-Mailbox -RecipientTypeDetails usermailbox -Filter {Litigationholdenabled -eq $true}

…but when I specify InPlaceHolds the command errors out.

Any ideas what command would work to get both?


Please format your code as code using the code tag button on the icon bar of the post editor (second to last icon). Thanks

Try this:

Get-Mailbox -ResultSize unlimited |
Where-Object {_.LitigationHoldEnabled -or _.InPlaceHolds}

Thanks Olaf.

Your suggestion works great.

Although I was hoping to get the “-Filter” to work as that would be a lot faster than doing it the other way around, especially since we have 50,000 users and they are in the Cloud. If you have any other ideas, please let me know





seems like there’s a bug … either in the cmdlet or in the documentation of Filterable properties for the Filter parameter. So unfortunately I don’t know another way, sorry.

No Worries Olaf and thanks again for the Powershell command.