I have a script to gather some statistics out of mailboxes that makes use of the StorageLimitStatus attribute of mailboxes (when running the Get-MailboxStatistics cmdlet). However, if you run the script in an Exchange 2013 environment, you will notice that this attribute is always blank while with Exchange 2010 it is not... Unfortunately, this is by design...
Unlike versions of the Information Store earlier than the one that comes with Exchange 2013, the Information Store in Exchange 2013 does not cache the values of mailbox quotas. Therefore, the Information Store makes frequent calls to Active Directory (AD) to retrieve the values of mailbox quotas for each mailbox that is specified in the Get-MailboxStatistics cmdlet. Because of the frequent calls to AD, admins may experience poor performance in Exchange. To avoid this, the default Get-MailboxStatistics cmdlet does not retrieve the mailbox quotas and does not display a value in the StorageLimitStatus field.
To work around this issue, all we can do is either use the Exchange Admin Console (EAC):
- Log on to EAC by using a user account that is assigned at least the Mail Recipients role;
- In the feature pane, click recipients. A list of mailboxes is displayed;
- Select the mailbox of which you want to verify the quota status and then click the Edit button on the toolbar;
- Click mailbox usage. The mailbox quota usage is displayed.
Or we can use the Exchange Management Shell and run the following cmdlet:
Get-MailboxStatistics <user> | FT *quota*, *size -AutoSize
Empty StorageLimitStatus when running Get-MailboxStatistics in Exchange 2013