PowerShell bulk modifies mailbox quotas and deleted retention periods
Applicable to: Exchange 2010 Universe 2013 Universe 2016 platform
Replace the DB column of CSV in the following code with the DB information of your environment, and change the parameters in the Set-MailboxDatabase command to the parameters you want to set.
$csv = Import-Csv C:\ scripts\ DB.csv-Encoding Default
Add-PSSnapin * exchange*
Foreach ($c in $csv)
{
Set-MailboxDatabase-Identity $c.DB-ProhibitSendReceiveQuota 51GB-ProhibitSendQuota 50GB-IssueWarningQuota 49.5GB `
-DeletedItemRetention 30
}
Welcome to follow the official Wechat account below for more information.