How to set Exchange Online mailbox sizes and limits in the Office 365 environment

Article ID: 2490230 - View products that this article applies to.
This article discusses Microsoft Office 365, Microsoft Office 365 Preview, and Microsoft Office 365 pre-upgrade. The info about Office 365 Preview in this article, including any links, is provided as is and is subject to change without notice.

Not sure what release of Office 365 you're using? Go to the following Microsoft website:
Am I using Office 365 after the service upgrade?
Expand all | Collapse all

On This Page

INTRODUCTION

This article describes how to use Exchange Online PowerShell to set Exchange Online mailbox sizes and limits in the Microsoft Office 365 environment.

PROCEDURE

To set mailbox size limits for Exchange Online mailboxes, use one of the following methods.

Set mailbox size limits for a single user

  1. Connect to Exchange Online by using Windows PowerShell. For info about how to do this, go to the following Microsoft website: 
    Connect Windows PowerShell to the Service
  2. Run the following PowerShell command to set the mailbox size for a single user:

    Set-Mailbox <UserID> -ProhibitSendQuota <Value> -ProhibitSendReceiveQuota <Value> -IssueWarningQuota <Value>

    Note In this command, the <User ID> placeholder represents a mailbox user's UPN, email address, or GUID, and the <Value> placeholder represents a number in megabytes (MB), kilobytes (KB), or gigabytes (GB). For example, to set a mailbox size to 20 GB, to set the send limit at 19 GB, and to issue a warning at 18 GB, run the following command:

    Set-Mailbox JDoe@contoso.com -ProhibitSendQuota 19GB-ProhibitSendReceiveQuota 20GB -IssueWarningQuota 18GB
  3. Check that the current list of quotas is attached to the mailbox. To do this, run the following command:

    Get-Mailbox <User ID> | Select *quota<User ID> | Select *quota

Set mailbox size limits for multiple users

  1. Connect to Exchange Online by using Windows PowerShell. For info about how to do this, go to the following Microsoft website:  
    Connect Windows PowerShell to the Service
  2. Run the following PowerShell command to set the mailbox size for all the users in an organization:
    Get-Mailbox | Set-Mailbox -ProhibitSendQuota <Value> -ProhibitSendReceiveQuota <Value> -IssueWarningQuota <Value>
    Additional filters can be applied to the Get-Mailbox cmdlet or to the Get-User cmdlet to control the users for whom the change is applied. The following is an example in which three cmdlets are used to filter the command to the sales department of an organization:

    Get-User | where {$_.Department -eq "Sales"} | Get-Mailbox | Set-Mailbox -ProhibitSendQuota <Value> -ProhibitSendReceiveQuota <Value> -IssueWarningQuota <Value>

MORE INFORMATION

For more info about mailbox size limits in Exchange Online, see the Office 365 service description at the following Microsoft website:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6c6ecc6c-64f5-490a-bca3-8835c9a4a2ea
Still need help? Go to the Office 365 Community website.

Properties

Article ID: 2490230 - Last Review: February 27, 2013 - Revision: 23.0
Applies to
  • Microsoft Office 365 for enterprises (pre-upgrade)
  • Microsoft Office 365 for education  (pre-upgrade)
  • Microsoft Exchange Online
  • Microsoft Office 365 Enterprise preview
  • Microsoft Exchange Online preview
Keywords: 
o365 o365a o365e o365022013 after upgrade o365062011 pre-upgrade o365m KB2490230

Give Feedback