Suspend-DfsReplicationGroup

Suspend-DfsReplicationGroup

Suspends replication between computers regardless of schedule.

语法

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

详细说明

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.

参数

-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.

别名

ReceivingMember,RMem

是否为必需?

true

位置?

3

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-DurationInMinutes<UInt32>

Specifies the number of minutes to suspend replication.

别名

Time

是否为必需?

true

位置?

4

默认值

是否接受管道输入?

false

是否接受通配符?

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.

别名

RG,RgName

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

false

-SourceComputerName<String>

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

别名

SendingMember,SMem

是否为必需?

true

位置?

2

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-Confirm

运行 cmdlet 之前提示你进行确认。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

-WhatIf

显示如果运行 cmdlet 则会发生什么情况。cmdlet 未运行。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

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

输出

输出类型是 cmdlet 所发出对象的类型。

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

示例

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

相关主题

Get-DfsReplicationGroup

New-DfsReplicationGroup

Remove-DfsReplicationGroup

Set-DfsReplicationGroup

Sync-DfsReplicationGroup