Commands › Exchange Online

Get-StoreUsageStatistics

Exchange Online ExchangeOnlineManagement Get-*

Aid in diagnosing performance issues with your servers or databases.

Quick start script

# Get-StoreUsageStatistics — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-StoreUsageStatistics -Identity <GeneralMailboxIdParameter> -Database <DatabaseIdParameter> -Server <ServerIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-StoreUsageStatistics | Export-Clixml .\StoreUsageStatistics-$(Get-Date -Format yyyyMMdd).xml

Syntax — 3 parameter sets

Database

Get-StoreUsageStatistics -Database <DatabaseIdParameter>
 [-CopyOnServer <ServerIdParameter>]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [<CommonParameters>]

Identity

Get-StoreUsageStatistics [-Identity] <GeneralMailboxIdParameter>
 [-CopyOnServer <ServerIdParameter>]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [<CommonParameters>]

Server

Get-StoreUsageStatistics -Server <ServerIdParameter>
 [-IncludePassive]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Identity GeneralMailboxIdParameter yes The Identity parameter specifies the mailbox to get usage statistics from. You can use one of the following values to identify the mailbox:
-Database DatabaseIdParameter yes The Database parameter specifies the name of the mailbox database to get usage statistics from (the top 25 largest mailboxes on the specified mailbox database). You can use any value that uniquely identifies the...
-Server ServerIdParameter yes The Server parameter specifies the Mailbox server to get usage statistics from (the top 25 mailboxes on all active databases on the specified server). You can use one of the following values to identify the server:
-CopyOnServer ServerIdParameter The CopyOnServer parameter specifies the mailbox database copy to get usage statistics from. You can use any value that uniquely identifies the mailbox database. For example:
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-Filter String The Filter parameter uses OPATH syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
-IncludePassive SwitchParameter The IncludePassive switch specifies whether to include usage statistics from active and passive copies of mailbox databases on the Mailbox server you specified with the Server parameter. You don't need to specify a...

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.