Commands › Exchange Online
Get-MailboxDatabase
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.