The Multifunctioning DBA

Nov 5 2008   9:37PM GMT

Exchange Quota Management

Colin Smith Colin Smith Profile: Colin Smith

Exchange Server ActiveSync

One of our Mail Administrators is new to the world of Exchange as we are currently migrating from Lotus Notes. She is also new to the world of scripting but is eager to learn how to administer exchange using Powershell. I sat with her today and we walked through a simple example of how to set quotas for user mailboxes. Here is what we did:


$names = Import-Csv “path to csv file containing first and last names”

foreach($name in $names)


$first = $name.first

$last = $name.last

$identity = “$last, $first”

set-mailbox `”$identity`” -issuewarningquota 180mb

get-mailbox `”$identity`”



So let’s break this down a bit.

  1. I had the mail admin get a list of all the users and put them In a csv file with the headers of first, last
  2. We bring that in and assign the variables $first and $last
  3. I then create the $identity variable and assign that with $last, $first so it would look like ‘Smith, John’
    1. This is so we modify the correct mailbox
  4. Then I use the exchange commandlet set-mailbox and pass it the $identity variable and the parameters that I want to change.
    1. In this case only the issuewarningquota parameter is being modified.
  5. Then I do a get-mailbox for the same $identity and I pipe that to format-table and look at the name and the parameter that I just modified in order to make sure that it has been set correctly.

That is it. It is so easy to make these changes to a huge number of users. If you have any questions or comments please let me know. Also if you would like to drop me a line head over to and submit a question.

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: