How to increase Mailbox size in Office 365 using PowerShell, in this article we will check how to increase Mailbox size in Office 365 using PowerShell
Managing mailbox sizes is a crucial aspect of maintaining efficient email communication within an organization. Office 365 assigns default mailbox quotas to users, which determine the maximum data they can store. However, as business requirements evolve, there may be instances where users require larger mailbox sizes. In such cases, PowerShell can be a powerful tool to increase Mailbox size in Office 365. This article provides a step-by-step guide to accomplish this task for individual users as well as multiple users.

Table of Contents
How to increase Mailbox size in Office 365 using PowerShell
In the below steps, we will check how to increase Mailbox size in Office 365 using PowerShell, also we will check for individual users and multiple users
Increase the Mailbox Size for User
Step 1: Connect to Exchange Online PowerShell
To begin, establish a connection with Exchange Online PowerShell by following these steps:
1. Launch PowerShell as an administrator.
2. Install the necessary PowerShell module by executing the following command:
Install-Module -Name ExchangeOnlineManagement
3. After the installation is complete, connect to Exchange Online PowerShell using the following command:
Connect-ExchangeOnline -UserPrincipalName <UPN> -ShowProgress $true
Replace <UPN>
with the user principal name of your Office 365 account.
Step 2: Check the Existing Mailbox Quota
Before modifying the mailbox size, it is essential to review the current mailbox quota for the user. To do this, execute the following command:
Get-Mailbox -Identity <UserPrincipalName> | Select-Object Name, IssueWarningQuota, ProhibitSendQuota, ProhibitSendReceiveQuota
Replace <UserPrincipalName>
with the user’s email address.
Step 3: Increase the Mailbox Size for Individual Users
To increase Mailbox size in Office 365, follow these steps:
- IssueWarningQuota: This quota level determines when the user receives a warning about their mailbox size. Modify it using the following command:
Set-Mailbox -Identity <UserPrincipalName> -IssueWarningQuota <NewValue>
Replace <UserPrincipalName>
with the user’s email address and <NewValue>
with the desired size in bytes.
2. ProhibitSendQuota: This quota level specifies when the user is prohibited from sending new messages due to their mailbox size. Adjust it using the following command:
Set-Mailbox -Identity <UserPrincipalName> -ProhibitSendQuota <NewValue>
Replace <UserPrincipalName>
with the user’s email address and <NewValue>
with the desired size in bytes.
3. ProhibitSendReceiveQuota: This quota level determines when the user is prevented from sending and receiving new messages. Modify it using the following command:
Set-Mailbox -Identity <UserPrincipalName> -ProhibitSendReceiveQuota <NewValue>
Replace <UserPrincipalName>
with the user’s email address and <NewValue>
with the desired size in bytes.
Step 4: Verify the Changes
To ensure that the modifications are successfully applied, verify the updated mailbox quota values using the following command:
Get-Mailbox -Identity <UserPrincipalName> | Select-Object Name, IssueWarningQuota, ProhibitSendQuota, ProhibitSendReceiveQuota
Replace <UserPrincipalName>
with the user’s email address.
Increase the Mailbox Size for Multiple Users
Step 1: Increase the Mailbox Size for Multiple Users
If you need to increase the mailbox size for multiple users, PowerShell can streamline the process. Follow these steps:
- Create a CSV file with two columns: “UserPrincipalName” and “NewValue.” List the users’ email addresses and the desired size in bytes for each user.
- Run the following PowerShell command to import the CSV file and update the mailbox sizes:
Import-Csv -Path "<FilePath>" | ForEach-Object {
Set-Mailbox -Identity $_.UserPrincipalName -IssueWarningQuota $_.NewValue -ProhibitSendQuota $_.NewValue -ProhibitSendReceiveQuota $_.NewValue
}
Replace <FilePath>
with the actual path to your CSV file.
Step 2: Verify the Changes for Multiple Users
To verify that the mailbox quota changes have been applied to multiple users, execute the following command:
Get-Mailbox -Identity <UserPrincipalName> | Select-Object Name, IssueWarningQuota, ProhibitSendQuota, ProhibitSendReceiveQuota
Replace <UserPrincipalName>
with one of the user’s email addresses from the CSV file.
By using the above cmdlets you can increase Mailbox size in Office 365 using PowerShell
Conclusion
In conclusion, using PowerShell to increase mailbox size/quota in Office 365 provides a flexible and efficient solution. By following the steps outlined in this article, you can easily modify mailbox quotas for individual users or multiple users. Effective management of mailbox sizes ensures smooth email communication and meets the evolving storage needs of your organization.
Visit Latestinfo365.com to check more article