Tuesday 5 June 2012

Script to get User Mailbox Quota Report

We messaging Admins come across situations where we have to extract user’s mailbox quota report, below command line scripts help you to get the details in different scenarios:

To get the Quota Define List:

Get-Mailbox  -ResultSize 20000000 | Where {$_.UseDatabaseQuotaDefaults -eq $false} |Select Name,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota >c:\Quota_user.txt

From Any OU:

Get-Mailbox –OrganizationalUnit  "contoso.com/Users/Staff" -ResultSize 20000000 | Where {$_.UseDatabaseQuotaDefaults -eq $true} |Select Name,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota >c:\Quota_user.txt



Hope this helps.

Expect more !!

No comments:

Post a Comment