Exchange User mailboxes whose TotalDeletedItemSize is greater than 10 GB

Welcome Forums General PowerShell Q&A Exchange User mailboxes whose TotalDeletedItemSize is greater than 10 GB

Viewing 1 reply thread
  • Author
    Posts
    • #152348
      Hil
      Participant
      Topics: 34
      Replies: 46
      Points: 265
      Rank: Contributor

      Hi,

      I need to get all Exchange user mailboxes (cloud) whose TotalDeletedItemSize is greater than 10 GB.
      So I am attempting to run the command on my own mailbox first before I run it on the whole collection
      Get-Mailbox <alias> | Get-MailboxStatistics | Where { (($_.TotalDeletedItemSize -split “(“)[0]) -gt 2}

      How can I get the command after the second pipe to runĀ  correctly?

      Thanks

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

      No worries. I figured it out.

      Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Where {(($_.TotalDeletedItemSize -split ” “)[0]) -gt 10}

       

Viewing 1 reply thread
  • The topic ‘Exchange User mailboxes whose TotalDeletedItemSize is greater than 10 GB’ is closed to new replies.