Apply quotas to users with specific attributes
http://help.outlook.com/en-gb/140/gg575548.aspx
You can apply this in your own environment. See the examples in the doc.
November 11th, 2011 11:14pm
First, a little background. Our Human Resources team uses a cloud-based vendor for our payroll system. We pull information from that vendor daily to update some basic AD fields, create new users, etc. We manually use a powershell command to manually
mail-enable the account in the morning, and then at noon another automated script moves the account to the correct OU so the account can be used. The reason for the delay is to catch quirky behavior...excessively long names, duplicate names, etc.
What I'd like to know is how we can further automate this process based upon job description or other fields. For example, setting default quota limits on new users with a job title similar to 'Director', or something automated in the background which would
automatically change the quotas from default to specified values if someone transfers into a position. But we have some users with the same title which have even larger mailboxes than the default for that role, so we don't want to reduce them.
Are there powershell commands we can use to accomplish this, or some policy we can set where we can define this?
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 10:48am
I ended up with this, not sure if it's the most efficient method but it seems to work. Do we need to run this manually moving forward or is there a way to automate running this for future people who match?
get-user -resultsize unlimited -filter {(Recipienttype -eq 'UserMailbox') -and ((title -like 'Community Director') -or (title -like 'Senior Community Director'))}
| get-mailbox | where {($_.UseDatabaseQuotaDefaults -eq $true)} | set-mailbox -ProhibitSendReceiveQuota 200MB -ProhibitSendQuota 170MB -IssueWarningQuota 150MB -UseDatabaseQuotaDefaults $false
December 30th, 2011 11:37am
I ended up with this, not sure if it's the most efficient method but it seems to work. Do we need to run this manually moving forward or is there a way to automate running this for future people who match?
get-user -resultsize unlimited -filter {(Recipienttype -eq 'UserMailbox') -and ((title -like 'Community Director') -or (title -like 'Senior Community Director'))}
| get-mailbox | where {($_.UseDatabaseQuotaDefaults -eq $true)} | set-mailbox -ProhibitSendReceiveQuota 200MB -ProhibitSendQuota 170MB -IssueWarningQuota 150MB -UseDatabaseQuotaDefaults $false
If it works then t's good. Maybe out that in a script and configure a scheduled task.Sukh
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 12:22pm
Save it as a .ps1 file and run as a scheduled task.
December 30th, 2011 2:16pm
Which version of Exchange, for e.g 2007/2010
You can use the get-mailbox and use customer attributes or any other attibute here -http://technet.microsoft.com/en-us/library/bb430744(EXCHG.80).aspx , then pipe that to set-mailbox and set the quotas.Sukh
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 2:23pm
Exchange 2010 SP1. I'll see if I can figure out the syntax to apply quotas to directors who are at defaults.
December 30th, 2011 2:36pm
http://help.outlook.com/en-gb/140/gg575548.aspx
You can apply this in your own environment. See the examples in the doc.
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 3:01pm