INTRODUCTION
This article describes how to use Exchange Online PowerShell to set Exchange Online mailbox sizes and limits in the Microsoft Office 365 environment.
To set mailbox size limits for Exchange Online mailboxes, use one of the following methods.
Set mailbox size limits for a single user
Connect to Exchange Online by using remote PowerShell. Quick connect using the following script: https://gallery.technet.microsoft.com/office/Connect-To-Office-365-9b235018
Run the following PowerShell command to set the mailbox size for a single user:
1 |
Set-Mailbox shaun.hardneck -ProhibitSendQuota "28 GB" -ProhibitSendReceiveQuota "30 GB" -IssueWarningQuota "27 GB" |
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:
Check that the current list of quotas is attached to the mailbox. To do this, run the following command:
1 |
Get-Mailbox Shaun.hardneck |Select Name,*Quota* |
Set mailbox size limits for multiple users
Run the following PowerShell command to set the mailbox size for specific users in an organization.
The following is an example in which three cmdlets are used to filter the command to the sales department of an organization:
1 |
Get-User | where {$_.Department -eq "Sales"} | Get-Mailbox | Set-Mailbox -ProhibitSendQuota "30 GB" -ProhibitSendReceiveQuota "32" GB" -IssueWarningQuota "27 GB" |
#ThatLazyAdmin
Be First to Comment