Archive for the ‘Mailbox Server’ Tag

Exchange Tip – Setting Quotas on all Mailbox Stores   Leave a comment

Ever have a need to set the same quota on all your mailbox stores? Here’s a simple command to help you out:

Get-MailboxDatabase | Set-MailboxDatabase -ProhibitSendReceiveQuota -ProhibitSendQuota -IssueWarningQuota

Then if you want to verify the settings:

Get-MailboxDatabase | FL Name,*quota

But I only want to assign to certain Mailbox Databases and not all. How can I do that?? Simple, you just need make sure you do a Get-MailboxDatabase that finds only the Databases you want. Like you may want all Databases on a server. So you would do:

Get-MailboxDatabase -Server MBXServerName | Set-MailboxDatabase -ProhibitSendReceiveQuota -ProhibitSendQuota -IssueWarningQuota

If you had a list of Databases in a file you could also do something like this (I haven’t tested this myself yet but should get you close if not work out of the gate).

Get-content databaselist.txt | ForEach-Object -Process {Set-MailboxDatabase -ProhibitSendReceiveQuota -ProhibitSendQuota -IssueWarningQuota }

Additionally you will want to be aware that values in quotas are in KB’s. You can specify MB or GB for the values but without it you may wind up with a 1KB mailbox instead of a 1GB mailbox, so be careful! Below is an example:

Set-MailboxDatabase -IssueWarningQuota 800MB -ProhibitSendQuota 900MB -ProhibitSendReceiveQuota 1GB

What if I want to be promted for the values? Not a problem. You could do something like this:

[string]$WRN = Read-host “Mailbox Database Warning Quota”

write-host “”

[string]$Send = Read-host “Mailbox Database Prohibit Send Quota”

write-host “”

[string]$SendRcv = Read-host “Mailbox Database Prohibit Send/Recieve Quota”

write-host “”

Write-host “Setting Mailbox Quota Values..”

Get-MailboxDatabase | Set-MailboxDatabase -ProhibitSendReceiveQuota $SendRcv -ProhibitSendQuota $Send -IssueWarningQuota $WRN

“Verifying Mailbox Quota Values…”

Get-MailboxDatabase | FL Name,*quota

Now you can take the information from the begining of this article and modify the above script to fit your needs.

Can’t have a good article without a BIG WARNING….

****Warning – testing is always a big part of ensuring desired results and avoiding catastrophic events. Verifying the limits you are setting along with using the “-Whatif” parameter will help you avoid the screaming phone call, the loud door knocking, or the devastating pink slip. 🙂

The posts are provided “AS-IS” with no warranties, and confers no rights.


Updated Exchange MBX Role Requirement Calculators   Leave a comment

As always, great to have these updates for proper design of your new Exchange environment.

07 Updates tracking:

07 Calc Download:

10 Updates tracking:

10 Calc Download:

The posts are provided “AS-IS” with no warranties, and confers no rights.

%d bloggers like this: