Commands › Exchange Online

Get-MailboxDatabase

Exchange Online ExchangeOnlineManagement Get-*

Retrieve one or more mailbox database objects from a server or organization.

Quick start script

# Get-MailboxDatabase — 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-MailboxDatabase -Server <ServerIdParameter> | Format-List

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

Syntax — 2 parameter sets

Server

Get-MailboxDatabase -Server <ServerIdParameter>
 [-DomainController <Fqdn>]
 [-DumpsterStatistics]
 [-IncludeCorrupted]
 [-IncludePreExchange2010]
 [-IncludePreExchange2013]
 [-Status]
 [<CommonParameters>]

Identity

Get-MailboxDatabase [[-Identity] <DatabaseIdParameter>]
 [-DomainController <Fqdn>]
 [-DumpsterStatistics]
 [-IncludeCorrupted]
 [-IncludePreExchange2010]
 [-IncludePreExchange2013]
 [-Status]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Identity DatabaseIdParameter The Identity parameter specifies the mailbox database that you want to view. You can use any value that uniquely identifies the database. For example:
-Server ServerIdParameter yes The Server parameter filters the results by the specified Mailbox server. You can use any value that uniquely identifies the server. 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...
-DumpsterStatistics SwitchParameter The DumpsterStatistics switch specifies that transport dumpster statistics be returned with the database status. You don't need to specify a value with this switch.
-IncludeCorrupted SwitchParameter This parameter is reserved for internal Microsoft use.
-IncludePreExchange2010 SwitchParameter The IncludePreExchange2010 switch specifies whether to return information about Exchange 2007 ore earlier mailbox databases. You don't need to specify a value with this switch.
-IncludePreExchange2013 SwitchParameter The IncludePreExchange2013 switch specifies whether to return information about Exchange 2010 or earlier mailbox databases. You don't need to specify a value with this switch.
-Status SwitchParameter The Status switch specifies whether to retrieve the available free space in the database root and information about the following attributes:

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