Created
September 17, 2019 22:24
-
-
Save jdgregson/276aa0f32dcc559a0548f6d2f3cbbc79 to your computer and use it in GitHub Desktop.
Sets the maximum message size to 150MB for new and existing Office 365 mailboxes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$plans = Get-MailboxPlan | Where-Object {$_.MaxSendSize -ne "Unlimited"} | |
$plans | ForEach-Object { | |
Set-MailboxPlan $_.Name -MaxSendSize 150MB -MaxReceiveSize 150MB | |
} | |
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -MaxReceiveSize 150MB -MaxSendSize 150MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment