Solved

Exchange Mailbox Limits

Posted on 2010-11-09
7
1,772 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 15

Expert Comment

by:JBond2010
ID: 34091443
Restart the services for Exchange.
0
 
LVL 16

Expert Comment

by:The_Kirschi
ID: 34091448
Try

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

Expert Comment

by:Busbar
ID: 34091607
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 1

Author Comment

by:Wean
ID: 34091939
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
ID: 34092039
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
ID: 34092094
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
ID: 34092114
just do
get-mailbox -database "database" |  Set-MailboxDatabase -ProhibitSendReceiveQuota "unlimited" -ProhibitSendQuota 2048MB -IssueWarningQuota 1843MB
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this video we show how to create a Distribution Group 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 Recipients >>…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

733 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