Where have all the System policies gone?
In MSX 2003 there was the possibility to configure alle mailbox store limits with a system policy. This was extremly handsome in larger organisations with lots of mailservers and dozens of mailbox databases.
Now, in MSX 2007? Must I configure every mailbox database with its own settings or is there another possibility? Or is there a nice powershell-commandlet, I did not found yet?
Thanks
Michael
June 16th, 2008 4:13pm
Hi Michael,
Yep, thats really easy to set with powershell command in Exchange 2007.
Get the mailbox database with your search filter and pipe it to Set-MailboxDatabase command with your settings which sets quota settings on all databases.
Some of the examples are here
For all Databases in your environment
Get-MailboxDatabase | Set-MailboxDatabase -IssueWarningQuota 209715200 -ProhibitSendQuota 262144000 -ProhibitSendReceiveQuota 293601280
For all Databases on a server
Get-MailboxDatabase |Where{$_.ServerName eq ServerName}| Set-MailboxDatabase -IssueWarningQuota1200MB -ProhibitSendQuota1500MB -ProhibitSendReceiveQuota 1800MB
For all Databases with server name matching string NY-Exch-*
Get-MailboxDatabase | Where{$_.ServerName like NY-Exch-*}| Set-MailboxDatabase -IssueWarningQuota 500MB -ProhibitSendQuota700MB -ProhibitSendReceiveQuota 1000MB
References:
Get-MailboxDatabase
Set-MailboxDatabase
An article if you are interested tofind someexceptional mailboxes.
Find Exceptional Mailboxes in ExchangeEnvironment
Free Windows Admin Tool Kit Click here and download it now
June 16th, 2008 5:26pm
That is a very good response, Amit. I wanted to add a bit. It is sad to see such a nice feature as System Policies disappear, but you can actually get much more flexible and powerfule with the PowerShell / Exchange Management Shell. One thing that I frequently needed to do with E2K3 was to group all of my VIPs or Exectives together on a single mailbox database because they required higher limits. This was inconvenient when the Executives werespread out all over the world.
With the Exchange Management Shell, you can expand the storage limits beyond just a mailbox store. For example, you can enumerate all the members of a group and set their limits. Here is an example:
Get-DistributionGroupMember "Executives"Set-Mailbox -UseDatabaseQuotaDefaults $False -IssueWarningQuota800MB -ProhibitSendQuota900MB -ProhibitSendReceiveQuota 1GB
(My EMS syntax may not be perfect because I did not have a server to test this with right now.)
June 17th, 2008 11:08am
Thanks for the valuable additional input, Jim. Thats true about VIPs & command works perfectly to apply quota on all members of a group.
I ran this in my test environment.
Get-DistributionGroupMember "Executives"| Set-Mailbox -UseDatabaseQuotaDefaults $False -IssueWarningQuota800MB -ProhibitSendQuota900MB -ProhibitSendReceiveQuota 1GB
And verified it with this.
Get-DistributionGroupMember "Executives" | Get-Mailbox | FT Name, UseDatabaseQuotaDefaults, IssueWarningQuota, ProhibitSendQuota, ProhibitSendReceiveQuota
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2008 11:56am