Author Posts

February 12, 2016 at 1:51 am

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?

February 13, 2016 at 1:54 am

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

February 15, 2016 at 12:01 am

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

Get-Mailbox | Select-object Name, MaxReceiveSize, MaxSendSize

February 16, 2016 at 6:24 am

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