Commands › Exchange Online

Mount-Database

Exchange Online ExchangeOnlineManagement Mount-*

Mount mailbox databases on Exchange servers. The cmdlet mounts the database only if the Microsoft Exchange Information Store service and the Microsoft Exchange Replication service are running.

Quick start script

# Mount-Database — 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
Mount-Database -Identity <DatabaseIdParameter> | Format-List

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

Syntax

Mount-Database [-Identity] <DatabaseIdParameter>
 [-AcceptDataLoss]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Force]
 [-NewCapacity]
 [-WhatIf]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Identity DatabaseIdParameter yes The Identity parameter specifies mailbox database that you want to mount. You can use any value that uniquely identifies the database. For example:
-AcceptDataLoss SwitchParameter The AcceptDataLoss switch specifies that you accept the data loss caused by missing committed transaction log files without asking for confirmation. You don't need to specify a value with this switch.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-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...
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-NewCapacity SwitchParameter The NewCapacity switch specifies that you want to trigger the forced creation of a database only if all copies of the database don't have an .edb file. You don't need to specify a value with this switch.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. 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.