Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
# run [Exchange Management Shell]
PS C:\Users\exchangeadmin> LaunchEMS
# show current quota settings
[PS] C:\Windows\system32> Get-Mailbox | Select Name,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota,UseDatabaseQuotaDefaults
Name : Server World
IssueWarningQuota : Unlimited
ProhibitSendQuota : Unlimited
ProhibitSendReceiveQuota : Unlimited
UseDatabaseQuotaDefaults : True
Name : Exchange Admin
IssueWarningQuota : Unlimited
ProhibitSendQuota : Unlimited
ProhibitSendReceiveQuota : Unlimited
UseDatabaseQuotaDefaults : True
Name : Ubuntu Linux
IssueWarningQuota : Unlimited
ProhibitSendQuota : Unlimited
ProhibitSendReceiveQuota : Unlimited
UseDatabaseQuotaDefaults : True
.....
.....
# for example, set quota for [Server World] mailbox
# IssueWarningQuota : issue a warning at specified size
# ProhibitSendQuota : prohibit send at specified size
# ProhibitSendReceiveQuota : prohibit send and receive at specified size
# UseDatabaseQuotaDefaults : need to set to [False] for custom settings
[PS] C:\Users\exchangeadmin> Set-Mailbox -Identity "Server World" `
-IssueWarningQuota 4gb `
-ProhibitSendQuota 4.5gb `
-ProhibitSendReceiveQuota 5gb `
-UseDatabaseQuotaDefaults $False
[PS] C:\Windows\system32> Get-Mailbox "Server World" | Select Name,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota,UseDatabaseQuotaDefaults
Name : Server World
IssueWarningQuota : 4 GB (4,294,967,296 bytes)
ProhibitSendQuota : 4.5 GB (4,831,838,208 bytes)
ProhibitSendReceiveQuota : 5 GB (5,368,709,120 bytes)
UseDatabaseQuotaDefaults : False
|