In Exchange you might have certain employees that have custom limits on there mailboxes, but as you know this can become quite messy especially if everyone started asking for it. To keep all mailboxes the same you can run a simple command to set the defaults back but as stated in a previous post you can also run a powershell command to view the mailboxes that have no/custom mailbox quota.
Viewing/Changing Storage Quota Limits
To view mailboxes with no quota limit or with a custom limit you can run the following command:
- get-mailbox -filter { usedatabasequotadefaults -eq $false -AND recipientTypeDetails -eq ‘usermailbox’ }
To set all mailboxes back to default you can run the following command in the Exchange Management Shell:
- get-mailbox -filter { usedatabasequotadefaults -eq $false -AND recipientTypeDetails -eq ‘usermailbox’ } | set-mailbox -UseDatabaseQuotaDefaults $true
Changing the default Database Quota Limit
Now that you have set the mailboxes back to default using the commands above, you can change the default limits set on the database itself. In the example below we have changed everything to unlimited. You can change the value to what is best for your organization. To change the limit you can run the following command using the Exchange Management Shell:
- Get-MailboxDatabase -Server <name> | Set-MailboxDatabase -IssueWarningQuota unlimited -ProhibitSendReceiveQuota unlimited -ProhibitSendQuota unlimited
Hope it helps.