Suspend-DfsReplicationGroup

Suspend-DfsReplicationGroup

Suspends replication between computers regardless of schedule.

Syntax

Parameter Set: Default
Suspend-DfsReplicationGroup [-GroupName] <String[]> [-SourceComputerName] <String> [-DestinationComputerName] <String> [-DurationInMinutes] <UInt32> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detaillierte Beschreibung

The Suspend-DfsReplicationGroup cmdlet suspends replication between computers, even if replication was scheduled by either a replication group or a connection.

This cmdlet ignores the schedule for a specified number of minutes. This is typically preferable to altering the schedule temporarily to prevent replication, because this cmdlet does not require Active Directory replication and LDAP polling.

Parameter

-DestinationComputerName<String>

Specifies the name of the receiving computer. A destination computer is also called an inbound or downstream computer. This computer overrides its schedule and stops inbound replication.

Aliasse

ReceivingMember,RMem

Erforderlich?

true

Position?

3

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-DurationInMinutes<UInt32>

Specifies the number of minutes to suspend replication.

Aliasse

Time

Erforderlich?

true

Position?

4

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-GroupName<String[]>

Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet queries for all participating replications groups. You can specify multiple groups, separated by commas.

Aliasse

RG,RgName

Erforderlich?

true

Position?

1

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByValue, ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-SourceComputerName<String>

Specifies the name of the sending computer. A source computer is also called an outbound or upstream computer.

Aliasse

SendingMember,SMem

Erforderlich?

true

Position?

2

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-Confirm

Sie werden vor dem Ausführen des Cmdlets zur Bestätigung aufgefordert.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, uint, string Computername, string Computername

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Beispiele

Example 1: Suspend replication between servers

This command suspends replication from server SRV01 to SRV02 in the RG01 replication group for 15 minutes, even if the replication happens during an open replication schedule.

PS C:\> Suspend-DfsReplicationGroup -GroupName "RG01" -SourceComputerName SRV01 -DestinationComputerName SRV02 -DurationInMinutes 15

Example 2: Suspend replication between servers with verbose output

This command suspends replication from server SRV01 to SRV02 in the RG01 replication group for 5 minutes, even if the replication happens during an open replication schedule, and displays output.

PS C:\> Suspend-DfsReplicationGroup -GroupName "RG01" -SourceComputerName SRV01 -DestinationComputerName SRV02 -DurationInMinutes 5 -Verbose

Verwandte Themen

Get-DfsReplicationGroup

New-DfsReplicationGroup

Remove-DfsReplicationGroup

Set-DfsReplicationGroup

Sync-DfsReplicationGroup