Solved

Exchange Mailbox Limits

Posted on 2010-11-09
7
1,718 Views
Last Modified: 2012-05-10
Im having a problem Setting the mailbox limits for a database.

I use the folowing script


Get-MailboxDatabase "DATABASE" | Set-MailboxDatabase -ProhibitSendReceiveQuota "unlimited" -ProhibitSendQuota 2048MB -IssueWarningQuota 1843MB

Open in new window



and then run the folowing to get a report

Get-mailboxdatabase -identity "DATABASE" | get-mailbox | foreach {

$MailboxInfo = Get-Mailbox -identity $_.displayName
$MailboxStat = Get-MailboxStatistics -identity $_.displayName

Add-Member -InputObject $_ noteProperty UseDefault $MailboxInfo.UseDatabaseQuotaDefaults
Add-Member -InputObject $_ noteProperty WarningQuota $MailboxInfo.IssueWarningQuota
Add-Member -InputObject $_ noteProperty SendQuota $MailboxInfo.ProhibitSendQuota
Add-Member -InputObject $_ noteProperty SendRecieveQutoa $MailboxInfo.ProhibitSendReceiveQuota

Add-Member -InputObject $_ noteProperty QuotaStatus $MailboxStat.StorageLimitStatus
Add-Member -InputObject $_ noteProperty TotalItems $MailboxStat.ItemCount
Add-Member -InputObject $_ noteProperty TotalSizeMB $MailboxStat.TotalItemSize.Value.ToMB()
Add-Member -InputObject $_ noteProperty DeleteItems $MailboxStat.DeletedItemCount
Add-Member -InputObject $_ noteProperty DeletedSizeMB $MailboxStat.TotalDeletedItemSize.Value.ToMB() -PassThru
Add-Member -InputObject $_ noteProperty MailboxDatabase $MailboxStat.database

} | Export-Csv -Path "D:\DATABASE.csv"

Open in new window


and the results show that the "WarningQuota" "SendQuota" and "SendRecieveQutoa" havent changed, i would expect them all to be set as the first script.

Am i doing something wrong or is it that damn gnome in the server!
0
Comment
Question by:Wean
7 Comments
 
LVL 15

Expert Comment

by:JBond2010
Comment Utility
Restart the services for Exchange.
0
 
LVL 16

Expert Comment

by:The_Kirschi
Comment Utility
Try

"Set-MailboxDatabase "<servername>\DATABASE" -ProhibitSendReceiveQuota "unlimited" -ProhibitSendQuota 2048MB -IssueWarningQuota 1843MB"
0
 
LVL 33

Expert Comment

by:Busbar
Comment Utility
you are setting the levels on the DB not the mailboxes so mailboxes limits will not change and when calculated it will be based on the DB where they are located.
so this is correct
0
Wish Marketing would stop bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

 
LVL 1

Author Comment

by:Wean
Comment Utility
Thanks for all your help The_Kirschi and JBond2010 and busbar.

busbar, that sound's like the problem. Im going to give it a go now.
0
 
LVL 1

Author Comment

by:Wean
Comment Utility
How do i modify the script below to change the

I tried to combine the two together to update for each mailbox in a database but i think im horrible wrong.

Get-mailboxdatabase -identity "DATABASE" | get-mailbox | foreach { Set-MailboxDatabase -ProhibitSendReceiveQuota "unlimited" -ProhibitSendQuota 2048MB -IssueWarningQuota 1843MB }

Am I on the right path or far off?

0
 
LVL 11

Expert Comment

by:JuusoConnecta
Comment Utility
Get-mailboxdatabase -identity "DATABASE" | set-mailbox | foreach { Set-MailboxDatabase -ProhibitSendReceiveQuota "unlimited" -ProhibitSendQuota 2048MB -IssueWarningQuota 1843MB }

after piping change the "get-mailbox" to "set-mailbox"
0
 
LVL 33

Accepted Solution

by:
Busbar earned 500 total points
Comment Utility
just do
get-mailbox -database "database" |  Set-MailboxDatabase -ProhibitSendReceiveQuota "unlimited" -ProhibitSendQuota 2048MB -IssueWarningQuota 1843MB
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This video discusses moving either the default database or any database to a new volume.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now