July 2017
Intermediate to advanced
648 pages
31h 9m
English
To configure these settings in bulk, we can make use of the pipeline to update the settings for a group of databases. For example, the following command will set the database limits for all mailboxes in the organization:
Get-MailboxDatabase | Set-MailboxDatabase `
-IssueWarningQuota 2gb `
-ProhibitSendQuota 2.5gb `
-ProhibitSendReceiveQuota 3gb `
-DeletedItemRetention 30 `
-MailboxRetention 90 `
-RetainDeletedItemsUntilBackup $true
In this command, we are piping the results of the Get-MailboxDatabase cmdlet to the Set-MailboxDatabase cmdlet and changing the default settings to the desired values for all databases in the organization.
Read now
Unlock full access