Skip to content

Instantly share code, notes, and snippets.

@mobernberger
Last active March 29, 2020 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mobernberger/6980d56a74d998a01ca2cde5ba92a8ff to your computer and use it in GitHub Desktop.
Save mobernberger/6980d56a74d998a01ca2cde5ba92a8ff to your computer and use it in GitHub Desktop.
With this series of commands you could change the maximum send and receive size in Exchange Online
#Connect to Exchange Online Powershell before running this commands.
#Get the actual value for all Mailbox Plans
Get-MailboxPlan | fl name,maxsendsize,maxreceivesize,isdefault
#Set the the max send and receive size to 50MB
Get-MailboxPlan | Set-MailboxPlan -MaxSendSize [On-Prem value in MB / e.g. 50MB] -MaxReceiveSize [On-Prem value in MB / e.g. 50MB]
#Set the max send and receive size 50MB for existing mailboxes
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Set-Mailbox -MaxSendSize 50MB -MaxReceiveSize 50MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment