Monday, June 22, 2009

PowerShell Script for getting list of users having no Default Quota Set

In a big exchange environment having more than 5000 users, it is hard to control Mailbox quota limit, you continuously gets pressure from the executive and top management for increasing their Mailbox quota and it is very hard to control that who has the default quota limit and who has not. Following commands can help in these type of situations by simplifying reporting and giving a list of users having no default quota set. The results from this command can be used for identifying the possible users who no longer need customized quota and should be configured back to default quota for ease of maintenance

Get-Mailbox -ResultSize unlimited -Database <Mailbox Server\Database Name>  | where {  (  $_.UseDatabaseQuotaDefaults -eq $false) }

No comments: