Commands › Exchange Online

Update-MailboxDatabaseCopy

Exchange Online ExchangeOnlineManagement Update-*

Seed or reseed a mailbox database copy.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-MailboxDatabaseCopy
$before | Format-List

# 3. Make the change (dry run first)
Update-MailboxDatabaseCopy -Identity <DatabaseCopyIdParameter> -CancelSeed <SwitchParameter> -Server <MailboxServerIdParameter> -WhatIf
Update-MailboxDatabaseCopy -Identity <DatabaseCopyIdParameter> -CancelSeed <SwitchParameter> -Server <MailboxServerIdParameter>

# 4. Verify and diff
$after = Get-MailboxDatabaseCopy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax — 3 parameter sets

CancelSeed

Update-MailboxDatabaseCopy [-Identity] <DatabaseCopyIdParameter>
 [-CancelSeed]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Identity

Update-MailboxDatabaseCopy [-Identity] <DatabaseCopyIdParameter>
 [-BeginSeed]
 [-Force]
 [-Network <DatabaseAvailabilityGroupNetworkIdParameter>]
 [-SecondaryDatabasePartitionOnly]
 [-SourceServer <ServerIdParameter>]
 [-CatalogOnly]
 [-Confirm]
 [-DatabaseOnly]
 [-DeleteExistingFiles]
 [-DomainController <Fqdn>]
 [-ManualResume]
 [-NetworkCompressionOverride <UseDagDefaultOnOff>]
 [-NetworkEncryptionOverride <UseDagDefaultOnOff>]
 [-NoThrottle]
 [-PrimaryDatabasePartitionOnly]
 [-SafeDeleteExistingFiles]
 [-WhatIf]
 [<CommonParameters>]

ExplicitServer

Update-MailboxDatabaseCopy -Server <MailboxServerIdParameter>
 [-MaximumSeedsInParallel <Int32>]
 [-CatalogOnly]
 [-Confirm]
 [-DatabaseOnly]
 [-DeleteExistingFiles]
 [-DomainController <Fqdn>]
 [-ManualResume]
 [-NetworkCompressionOverride <UseDagDefaultOnOff>]
 [-NetworkEncryptionOverride <UseDagDefaultOnOff>]
 [-NoThrottle]
 [-PrimaryDatabasePartitionOnly]
 [-SafeDeleteExistingFiles]
 [-WhatIf]
 [<CommonParameters>]

Parameters (21)

ParameterTypeRequiredWhat it controls
-Identity DatabaseCopyIdParameter yes The Identity parameter specifies the name or GUID of the mailbox database whose copy is being seeded.
-CancelSeed SwitchParameter yes The CancelSeed switch specifies whether to cancel an in-progress seeding operation. You don't need to specify a value with this switch.
-Server MailboxServerIdParameter yes The Server parameter is used as part of a full server reseed operation. It can be used with the MaximumSeedsInParallel parameter to start reseeds of database copies in parallel across the specified server in batches...
-BeginSeed SwitchParameter The BeginSeed switch asynchronously starts the seeding operation and then exits the cmdlet. You don't need to specify a value with this switch.
-CatalogOnly SwitchParameter The CatalogOnly switch specifies that only the content index catalog for the database copy should be seeded. 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.
-DatabaseOnly SwitchParameter The DatabaseOnly switch specifies that only the database copy should be seeded. The content index catalog isn't seeded. You don't need to specify a value with this switch.
-DeleteExistingFiles SwitchParameter The DeleteExistingFiles switch specifies whether to remove the existing log files at the target location. You don't need to specify a value with this switch.
-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.
-ManualResume SwitchParameter The ManualResume switch specifies whether to automatically resume replication on the database copy. You don't need to specify a value with this switch.
-MaximumSeedsInParallel Int32 The MaximumSeedsInParallel parameter is used with the Server parameter to specify the maximum number of parallel seeding operations that should occur across the specified server during a full server reseed operation....
-Network DatabaseAvailabilityGroupNetworkIdParameter The Network parameter specifies which DAG network should be used for seeding. Content index catalog seeding always occurs over the MAPI network, even if you use this parameter to specify the DAG network.
-NetworkCompressionOverride UseDagDefaultOnOff The NetworkCompressionOverride parameter specifies whether to override the current DAG network compression settings.
-NetworkEncryptionOverride UseDagDefaultOnOff The NetworkEncryptionOverride parameter specifies whether to override the current DAG encryption settings.
-NoThrottle SwitchParameter The NoThrottle switch prevents the seeding operation from being throttled. You don't need to specify a value with this switch.
-PrimaryDatabasePartitionOnly SwitchParameter This parameter is reserved for internal Microsoft use.
-SafeDeleteExistingFiles SwitchParameter The SafeDeleteExistingFiles switch specifies a seeding operation with a single copy redundancy pre-check prior to the seed. You don't need to specify a value with this switch.
-SecondaryDatabasePartitionOnly SwitchParameter This parameter is reserved for internal Microsoft use.
-SourceServer ServerIdParameter The SourceServer parameter specifies the Mailbox server with a passive copy of the mailbox database to be used as the source for the seed operation.
-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.