Configuring the mailbox and public folder database limits

The Exchange Management Shell provides cmdlets that allow you to configure the storage limits for both mailbox and public folder databases. This recipe will show you how to set these limits interactively in the shell or in bulk using automated script.

How to do it...

  1. To configure the storage limits for a mailbox database, use the Set-MailboxDatabase cmdlet, for example:
    Set-MailboxDatabase -Identity DB1 `
    -IssueWarningQuota 2gb `
    -ProhibitSendQuota 2.5gb `
    -ProhibitSendReceiveQuota 3gb
  2. You can set the limits for a public folder database using the following command syntax:
    Set-PublicFolderDatabase -Identity PFDB1 `
    -IssueWarningQuota 25mb `
    -ProhibitPostQuota 30mb `
    -MaxItemSize 5mb

How it works... ...

Get Microsoft Exchange 2010 PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.