Global search on Exchange (Cloud Environment)

This topic contains 2 replies, has 2 voices, and was last updated by  Hil 1 day, 21 hours ago.

  • Author
    Posts
  • #84278

    Hil
    Participant

    Hi,

    We have a hybrid environment.
    I need to find out all cloud users that received a message. All I have is the SUBJECT and DATE range.
    Any ideas on the PowerShell command or script?

    I am able to find a message given the user name with...

    Search-Mailbox -identity  -SearchQuery subject:' AND (Received:)' -TargetMailbox  -TargetFolder 

    ..but I need to do a global search, across all users.
    Thanks

  • #84283

    Jon
    Participant

    Have you tried this?

     get-mailbox -resultsize unlimited | search-mailbox -searchquery....
    • #84361

      Hil
      Participant

      Jon, yes thanks that would work.
      Although when I tried that, it spun for a hour or so and then gave a controller failure (Throttled).
      I ended up calling up MS support and they mentioned that get-mailbox is being deprecated and for cloud usage the Compliance search needs to be used.
      They also mentioned that get-mailbox is throttled but Compliance search is not.
      Thanks
      Hil

You must be logged in to reply to this topic.