Set Mailbox Sizes by RoleAssignmentPolicy
Hi All, Just trying to confirm if you can set mailbox size limits to a mailbox depending on which mailbox RoleAssignmentPolicy the user is in? We currently move users from one DB to another simply to change mailbox sizes. I would like to set these limits based on which policy the mailbox is in. Thanks
August 8th, 2012 5:58am

Hi Sgt Josh, Yes, you can. Please try the following cmdlet: Get-Mailbox | where {$_.RoleAssignmentPolicy -eq "policyname"} | Set-Mailbox -IssueWarningQuota 209715200 -ProhibitSendQuota 262144000 -ProhibitSendReceiveQuota 293601280 -UseDatabaseQuotaDefaults $false Set-Mailbox http://technet.microsoft.com/en-us/library/bb123981.aspxFrank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2012 2:00am

Thanks Frank, but I would prefer not too run script every hour for this too work I would like this to occur dynamically meaning if a user has change to a new policy the new limit is set strait away. Is this possiable? Thanks Josh
August 9th, 2012 2:11am

Hi Sgt Josh, Usually, you can do it via Schedule Task to run an Exchange task automatically. Please see the following blog: How To: Schedule PowerShell Script for an Exchange Task http://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/ Another choise is to create several .ps1 file to combine two tasks: Set-Mailbox with RoleAssignmentPolicy & Set-Mailbox with *quota. If you want to change a new policy for a mailbox, you can use the .ps1 file to do it.Frank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2012 11:11pm

Hi Sgt Josh, Any updates?Frank Wang TechNet Community Support
August 13th, 2012 10:14pm

It'll work but it's not really what we wanted as the helpdesk should not have to tell the user that there is an or so hour delay, and as we would like to have a number of policies and we have a large user base it would create unnecessary load on our DC's. So basically we have to weigh up the cost.
Free Windows Admin Tool Kit Click here and download it now
August 14th, 2012 4:35am

Are we happy to say that no other way to complete this action?
August 14th, 2012 4:36am

Hi Sgt Josh, Yes, I'm afraid you have to rely on the above two options at the moment.Frank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 14th, 2012 9:49pm

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

Other recent topics Other recent topics