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
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, uint, string Computername, string Computername
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- 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