O'Reilly logo

Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring archive mailbox quotas

As you enable archive mailboxes for end users and set up retention policies, you may find that the default limitations configured for archive mailboxes do not meet your needs. In this recipe, you'll learn how to modify archive mailbox quotas using the Exchange Management Shell.

How to do it...

  1. To modify the archive quota settings for a single mailbox, use the Set-Mailbox cmdlet:
    Set-Mailbox dsmith -ArchiveQuota 10gb -ArchiveWarningQuota 8gb
    
  2. To do this in bulk, use the Get-Mailbox cmdlet to retrieve the mailboxes that need to be updated and pipe the results to the Set-Mailbox cmdlet. For example, the following one-liner would update all the users in the DB01 database:
    Get-Mailbox -Database DB01 | 
     Where-Object ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required