Set-ExchangeMailboxLimits cmdlet sets the send and receive limits (storage and message restrictions) for the mailbox.

This cmdlet supports risk-mitigation parameters.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Restrictions/Valid Values
1 Authentication Information (all parameters)  
2

Identity

(aliases: GUID, DistinguishedName)

string R A property that is used for managing the Exchange mailbox 

Value of one of these parameters can be used as Identity:

#ParameterDescription
1 GUID Globally Unique Identifier (ObjectGuid)
2 DistinguishedName Unique name of the object in Active Directory
3 AutoIncreaseQuota bool O The parameter specifies whether to increase quota automatically or not
  • True - the quota is increased automatically.
  • False - the quota is not increased automatically.

The default value depends on the account settings.

4 MaxReceiveSize string O The maximum size of a message that can be sent to the mailbox  
5 MaxSendSize string O The maximum size of a message that can be sent by the mailbox  
6 ProhibitSendQuota string O This parameter specifies a size limit for the mailbox. If the mailbox reaches or exceeds this size, the mailbox can't send new messages, and the user receives a descriptive warning message. The ProhibitSendQuota value must be less than or equal to the ProhibitSendReceiveQuota value
7 ProhibitSendReceiveQuota string O The parameter specifies a size limit for the mailbox. If the mailbox reaches or exceeds this size, the mailbox can't send or receive new messages.  
8 RecipientLimits string O The maximum number of recipients per message  
9 SendQuotaWarning bool O The parameter specifies whether the warnings are sent to administrator or not
  • True - the warnings are sent to administrator.
  • False - the warnings are not sent to administrator.

The default value depends on the account settings.

10 SendQuotaWarningToMailbox bool O The parameter specifies whether the warnings are sent to users, when they send a message, or not
  • True - the warnings are sent to users.
  • False - the warnings are not sent to users.

The default value depends on the account settings.

Output parameters

No parameters

Example of using Set-ExchangeMailboxLimitscmdlet

Set-ExchangeMailboxLimits -Identity 24b774f4-47ed-4f4b-9dc0-c971cbb1a342 -RecipientLimits "50" -MaxReceiveSize "25MB" -MaxSendSize "50MB" -SendQuotaWarning $true