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

Welcome Forums General PowerShell Q&A Get all cloud users who on Litigation hold and/or InPlace hold

Viewing 4 reply threads
  • Author
    Posts
    • #158991
      Hil
      Participant
      Topics: 34
      Replies: 46
      Points: 265
      Rank: Contributor

      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?

      Thanks

    • #159018
      Participant
      Topics: 10
      Replies: 2480
      Points: 6,538
      Helping Hand
      Rank: Community MVP

      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:

    • #159024
      Hil
      Participant
      Topics: 34
      Replies: 46
      Points: 265
      Rank: Contributor

      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

      Thanks

      Hil

       

    • #159069
      Participant
      Topics: 10
      Replies: 2480
      Points: 6,538
      Helping Hand
      Rank: Community MVP

      Hil,

      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.

    • #159087
      Hil
      Participant
      Topics: 34
      Replies: 46
      Points: 265
      Rank: Contributor

      No Worries Olaf and thanks again for the Powershell command.

Viewing 4 reply threads
  • The topic ‘Get all cloud users who on Litigation hold and/or InPlace hold’ is closed to new replies.