Commands › Exchange Online

Get-MailboxDatabaseCopyStatus

Exchange Online ExchangeOnlineManagement Get-*

View health and status information about one or more mailbox database copies.

Quick start script

# Get-MailboxDatabaseCopyStatus — 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-MailboxDatabaseCopyStatus -Server <MailboxServerIdParameter> | Format-List

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

Syntax — 2 parameter sets

Server

Get-MailboxDatabaseCopyStatus -Server <MailboxServerIdParameter>
 [-Active]
 [-ConnectionStatus]
 [-DomainController <Fqdn>]
 [-ExtendedErrorInfo]
 [-UseServerCache]
 [<CommonParameters>]

Identity

Get-MailboxDatabaseCopyStatus [[-Identity] <DatabaseCopyIdParameter>]
 [-Local]
 [-Active]
 [-ConnectionStatus]
 [-DomainController <Fqdn>]
 [-ExtendedErrorInfo]
 [-UseServerCache]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Identity DatabaseCopyIdParameter The Identity parameter specifies the name of the database copy for which the command should gather information. The Identity parameter can be specified in the form of `<Database>\<Server>`. Specifying just...
-Server MailboxServerIdParameter yes The Server parameter specifies that a Mailbox server returns status information for all of its mailbox database copies. This parameter can't be combined with the Identity parameter.
-Active SwitchParameter The Active switch specifies whether to return mailbox database copy status for the active mailbox database copy only. You don't need to specify a value with this switch.
-ConnectionStatus SwitchParameter This parameter is deprecated and no longer used.
-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...
-Local SwitchParameter The Local switch specifies whether to return mailbox database copy status information from only the local Mailbox server. You don't need to specify a value with this switch.
-ExtendedErrorInfo SwitchParameter The ExtendedErrorInfo switch specifies whether to return an output object containing any exception details. You don't need to specify a value with this switch.
-UseServerCache SwitchParameter The UseServerCache switch specifies whether to enable a server-side remote procedure call (RPC) caching of status information for 5 seconds. You don't need to specify a value with this switch.

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