Get the App
SLTechnology News&Howtos  ›  Servers  › 

PowerShell bulk modifies mailbox quotas and deleted retention periods

Shulou Source: shulou.com Published: 2022-06-03 04:33:10 10月02日 Update

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.

Tags: Information parameters code public commands platforms more environment retention period mailboxes quotas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple OPPO Reno MySQL Shulou Tech Info Shulou Technology