Reconfiguring all mailboxes to use the database quota limits
Hi all,We use Exchange 2007 SP1.Our pupil's database is in a bit of a mess with various quota limits applied to various users and other users have the database defaults set as their quota. I have managed to get agreed quota limits for all pupils and would like to reset all mailboxes to use the database limits instead of it being defined on each mailbox. Can anybody give me a cmdlet that will do this job for me? I seem to be trying to do the opposite to what most people do with limits but that's life in a school for you :)Best wishes,Steven.
September 17th, 2009 3:25pm

Why dont you create Separate database for Pupils and Separate for Normal users.So that you can have control on database limits as well as to mbx and it will also make administration easier This one is nice article to set the limit on databse see Setting Limits on the Mailbox Database section http://www.exchangeinbox.com/article.aspx?i=140 Vinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2009 3:55pm

Hi,We do have seperate databases, one for staff and one for pupils. That article you sent me is interesting and does have instructions on using a cmdlet to (I think) force an individual mailbox not to use the database quota limits:-UseDatabaseQuotaDefaults $False So I assume the command to force it to use the database quota limits would be:-UseDatabaseQuotaDefaults $TrueWhat I need is a command to do this for every mailbox in the students database, not to individual maiboxes.Many thanks,Steven.
September 17th, 2009 4:32pm

Alright just take a look @ below Set-MailboxDatabase -Identity "Server1\MailboxDatabase1" -IssueWarningQuota 209715200 -ProhibitSendQuota 262144000 -ProhibitSendReceiveQuota 293601280 -QuotaNotificationSchedule "Sun.2:00-Sun.3:00","Wed.2:00-Wed.3:00" How to Configure Storage Quotas for a Mailbox Database http://technet.microsoft.com/en-us/library/bb201753.aspx Vinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2009 4:44pm

To set all users to use the Mailbox Database default quotas you can usesomething like thefollowing:-Get-Mailbox -Database "<Mailbox Database>" | Set-Mailbox -UseDatabseQuotaDefaults $TrueHope that helps.James
September 17th, 2009 4:50pm

Haven't tested this one liner thoroughly, but it appears to do the job: [PS] C:\>Get-MailboxDatabase -Identity "SBS\First Storage Group\Mailbox Database"| Get-Mailbox | ` Set-Mailbox -UseDatabaseQuotaDefault $True Note: The char afterGet-Mailbox | means the line continuos. Individual mailbox settings take precedence over global database settings. You can see that in the EMC, so first you need to set all mailboxes in the particular database to True. The command (on my SBS 2008 box with next to all defaults ... ). Below sort of an explanation of what is going one. To see the results in the EMC, you must to a refresh. # We need to get the name of the database Get-MailboxDatabase -Identity "SBS\First Storage Group\Mailbox Database" # The we do a pipe and get all mailboxes in that database Get-Mailbox # A new pipe for each and every single mailbox we do a Set-Mailbox -UseDatabaseQuotaDefault $True jas
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2009 4:59pm

Hi,I've now accomplished what I set out to do so thanks to you all! The only thing I had to tweak with Jon-Alfred's solution was to put in an allowance to return more than the standard 1000 results. Once I did that all was well.This is the first time I have used the new forums and am well impressed!Best wishes and thanks,Steven.
September 17th, 2009 5:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics