Sync-DfsReplicationGroup
Synchronizes replication between computers regardless of schedule.
Sync-DfsReplicationGroup
[-GroupName] <String[]>
[-SourceComputerName] <String>
[-DestinationComputerName] <String>
[-DurationInMinutes] <UInt32>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Sync-DfsReplicationGroup cmdlet synchronizes replication between a source computer and a destination computer, even if replication is not scheduled by either a replication group or a connection.
This cmdlet ignores the schedule for the specified number of minutes. Use this cmdlet to alter the schedule temporarily to allow replication, because this cmdlet does not require Active Directory replication and LDAP polling.
PS C:\> Sync-DfsReplicationGroup -GroupName "RG01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" -DurationInMinutes 15
This command allows replication from server SRV01 to SRV02 in the RG01 replication group for 15 minutes, even if the replication happens during a closed replication schedule.
PS C:\> Sync-DfsReplicationGroup -GroupName "RG01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" -DurationInMinutes 5 -Verbose
VERBOSE: Performing operation "Sync-DfsReplicationGroup" on Target "SRV01".
VERBOSE: The **Sync-DfsReplicationGroup** cmdlet completed successfully.
This command allows replication from server SRV01 to SRV02 in the RG01 replication group for 5 minutes.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of the receiving computer. A destination computer is also called an inbound or downstream computer. This computer overrides its schedule and replicates inbound.
Type: | String |
Aliases: | ReceivingMember, RMem |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the number of minutes to allow replication.
Type: | UInt32 |
Aliases: | Time |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet queries for all participating replication groups. You can use a comma separated list and the wildcard character (*).
Type: | String[] |
Aliases: | RG, RgName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
Specifies the name of the sending computer. A source computer is also called an outbound or upstream computer.
Type: | String |
Aliases: | SendingMember, SMem |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, uint, string Computername, string Computername
Microsoft.DistributedFileSystemReplication.DfsReplicationGroup