Use mailbox database defaults
Hi,
I have Exchange 2007. I want to set up mailbox quota for all users. After I set it in Server Configuration -> Mailbox -> Properties -> Limits, I went to Recipient Configuration -> Mailbox. I open user's mail box, I noticed the box "Use mailbox
database defaults" is unchecked for all users. How can I make it checked without going to each mailbox to check it?
Please advise!
Thanks!Grace
September 6th, 2012 7:01pm
On Thu, 6 Sep 2012 23:01:21 +0000, graceyin39 wrote:
>
>
>Hi,
>
>I have Exchange 2007. I want to set up mailbox quota for all users. After I set it in Server Configuration -> Mailbox -> Properties -> Limits, I went to Recipient Configuration -> Mailbox. I open user's mail box, I noticed the box "Use mailbox database
defaults" is unchecked for all users. How can I make it checked without going to each mailbox to check it?
>
>Please advise!
Something like this would work:
Get-Mailbox -resultsize unlimited | foreach {
set-mailbox $_ -IssueWarningQuota Unlimited -ProhibitSendQuota
Unlimited -ProhibitSendReceiveQuota Unlimited
-UseDatabaseQuotaDefaults:$true
}
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2012 9:39pm
Hi Rich,
Thank you for your reply. I got the output below after I ran the command. Please advise!
Set-Mailbox : A parameter cannot be found that matches parameter name 'Prohibit
SendQuotaUnlimited'.
At line:1 char:117
+ Get-Mailbox -resultsize unlimited | foreach {set-mailbox $_ -IssueWarningQuot
a Unlimited -ProhibitSendQuotaUnlimited <<<< -ProhibitSendReceiveQuota Unlimit
ed -UseDatabaseQuotaDefaults:$true}
+ CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBin
dingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Exchange.Manage
ment.RecipientTasks.SetMailbox
Grace
September 7th, 2012 3:02pm
You missed the space 'ProhibitSendQuotaUnlimited' should be 'ProhibitSendQuota Unlimited'.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2012 3:18pm
It worked. Thank you very much!!!
One more question. Will this change apply to new mailbox?
Grace
September 7th, 2012 3:43pm
On Fri, 7 Sep 2012 19:02:12 +0000, graceyin39 wrote:
>Thank you for your reply. I got the output below after I ran the command. Please advise! Set-Mailbox : A parameter cannot be found that matches parameter name 'Prohibit SendQuotaUnlimited'. At line:1 char:117 + Get-Mailbox -resultsize unlimited | foreach
{set-mailbox $_ -IssueWarningQuot a Unlimited -ProhibitSendQuotaUnlimited <<<< -ProhibitSendReceiveQuota Unlimit ed -UseDatabaseQuotaDefaults:$true} + CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBin dingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Exchange.Manage
ment.RecipientTasks.SetMailbox
There's no space in the parameter name. It should be:
"-ProhibitSendQuota Unlimited"
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2012 5:44pm
On Fri, 7 Sep 2012 19:43:06 +0000, graceyin39 wrote:
>It worked. Thank you very much!!!
>
>One more question. Will this change apply to new mailbox?
That depends on how you create new mailboxes! Do you always set
explicit quotas on them, or do you allow the default of
"-UseDatabaseQuotaDefaults:$true"?
If you take the default, the answer is "yes".
If, however, you have some scripted provisioning of new mailboxes the
answer is "no".
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
September 7th, 2012 5:47pm