Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...

In the first example, we have configured the IssueWarningQuota, ProhibitSendQuota, and ProhibitSendRecieveQuota limits for the DB1 mailbox database. These are the storage limits that will be applied to each mailbox that is stored in this database...