Check send/receive limitations for individual mailboxes

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Einar Herstad-Hansen Einar Herstad-Hansen 9 months, 3 weeks ago.

  • Author
    Posts
  • #35200

    En Exchange you can configure limitations on the size of e-mails on the connectors and in Exchange 2013 I have seen you can define this on postbox-level as well. Is it possible to run a (or several) line(s) of code that checks if any value is defined on individual mailboxes?

  • #35232
    Profile photo of Liam Kemp
    Liam Kemp
    Participant

    Hi Einar,
    Absolutely. You can do this in a single line.
    For starters, I would check what properties are available in the Get-Mailbox cmdlet.

     Get-Mailbox | Get-Member 

    You should find what you are looking for in there. All you need to do is extract it. I'd try Select-Object.

    Cheers

    Liam

  • #35255

    Thanks for your help. That solved it using this code:

    Get-Mailbox | Select-object Name, MaxReceiveSize, MaxSendSize
    
  • #35305

    Here is the final code. It displays only the mailboxes that have restrictions connected to it.


    Get-Mailbox | Where-Object {$_.MaxReceiveSize -ne "Unlimited"} | Sort-Object | Select-object Name, MaxReceiveSize, MaxSendSize | Out-File c:\limitations.txt

You must be logged in to reply to this topic.