Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Use the Update-MailboxDatabaseCopy cmdlet to seed or reseed a mailbox database copy. Seeding is the process in which a copy of a mailbox database is added to another Mailbox server. This becomes the baseline database for the copy.

Syntax

Update-MailboxDatabaseCopy -Identity <DatabaseCopyIdParameter> [-CatalogOnly <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-DatabaseOnly <SwitchParameter>] [-DeleteExistingFiles <SwitchParameter>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-ManualResume <SwitchParameter>] [-Network <DatabaseAvailabilityGroupNetworkIdParameter>] [-NetworkCompressionOverride <UseDagDefault | Off | On>] [-NetworkEncryptionOverride <UseDagDefault | Off | On>] [-SourceServer <ServerIdParameter>] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]

Detailed Description

You must suspend a database copy before you can update it using the Update-MailboxDatabaseCopy cmdlet. For detailed steps about how to suspend a database copy, see Suspend or Resume a Mailbox Database Copy. You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the"mailbox database copy" entry in the High Availability Permissions topic.

Parameters

-Identity [<DatabaseCopyIdParameter>]

The Identity parameter specifies the name or GUID of the mailbox database whose copy is being seeded.

Required?   True
Position?   1
Default value?  
Accept pipeline input?   True
Accept wildcard characters?   False

-CatalogOnly [<SwitchParameter>]

The CatalogOnly parameter specifies that only the content index catalog for the database copy should be seeded. The database copy is not seeded. By default, both the database and catalog are seeded.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-Confirm [<SwitchParameter>]

The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-DatabaseOnly [<SwitchParameter>]

The DatabaseOnly parameter specifies that only the database copy should be seeded. The content index catalog is not seeded.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-DeleteExistingFiles [<SwitchParameter>]

The DeleteExistingFiles parameter causes the command to remove the existing log files at the target location. This parameter removes only the files that it checks for and fails if other files are present. No action is taken on other files at the target location. Therefore, if database-related files are present, you must manually remove them.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-DomainController [<Fqdn>]

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-Force [<SwitchParameter>]

Use the Force parameter when the task is run programmatically and prompting for administrative input is inappropriate. If Force is not provided in the command, administrative input is prompted. If Force is provided in the command, but the value is omitted, its default value is $true.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-ManualResume [<SwitchParameter>]

Use the ManualResume parameter when you don't want the command to automatically resume replication on the database copy. This parameter allows you to manually resume replication to the database copy.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-Network [<DatabaseAvailabilityGroupNetworkIdParameter>]

The Network parameter specifies which DAG network should be used for seeding.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-NetworkCompressionOverride [<UseDagDefault | Off | On>]

The NetworkCompressionOverride parameter is used to override the compression setting for seeding and the database availability group (DAG).

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-NetworkEncryptionOverride [<UseDagDefault | Off | On>]

The NetworkEncryptionOverride parameter is used to override the encryption setting for seeding and the DAG.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-WhatIf [<SwitchParameter>]

The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

-SourceServer [<ServerIdParameter>]

The SourceServer parameter is used to specify the name of a Mailbox server with a passive copy of the mailbox database to be used as the source for the seed operation.

Required?   False
Position?   Named
Default value?  
Accept pipeline input?   False
Accept wildcard characters?   False

Input Type

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types (http://go.microsoft.com/fwlink/?LinkId=217198). If the Input Type field for a cmdlet is blank, the cmdlet doesn't accept input data.

Return Type

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types (http://go.microsoft.com/fwlink/?LinkId=217198). If the Output Type field is blank, the cmdlet doesn't return data.

Notes

Examples

EXAMPLE 1

PS> 

This example shows how to seed a copy of a database named DB1 on MBX1.

Update-MailboxDatabaseCopy -Identity DB1\MBX1

EXAMPLE 2

PS> 

This example shows how to seed a copy of a database named DB1 on MBX1 using MBX2 as the source Mailbox server for the seed.

Update-MailboxDatabaseCopy -Identity DB1\MBX1 -SourceServer MBX2

EXAMPLE 3

PS> 

This example shows how to seed a copy of a database named DB1 on MBX1 without seeding the content index catalog.

Update-MailboxDatabaseCopy -Identity DB1\MBX1 -DatabaseOnly

EXAMPLE 4

PS> 

This example shows how to seed the content index catalog for the copy of a database named DB1 on MBX1 without seeding the database file.

Update-MailboxDatabaseCopy -Identity DB1\MBX1 -CatalogOnly