Remove-Dfsr Connection

Removes a connection between members of a replication group.

Syntax

Remove-DfsrConnection
      [-GroupName] <String[]>
      [-SourceComputerName] <String>
      [-DestinationComputerName] <String>
      [-Force]
      [[-DomainName] <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-DfsrConnection cmdlet removes a connection between members of a replication group. After you remove the connections between a pair of server, the Distributed File System (DFS) Replication service cannot replicate data between the servers. You should always delete connections bidirectionally between two servers. Run this cmdlet for the receiving computer and the sending computer.

DFS Replication connections are the logical partnerships between members in a replication group. The DFS Replication service uses the Remote Procedure Call (RPC) protocol to communicate between servers.

Examples

Example 1: Remove a connection between members of a replication group

PS C:\> Remove-DfsrConnection -GroupName "RG24" -SourceComputerName "SRV01" -DestinationComputerName "SRV02"
This operation will remove the connection from the replication group. First computer: SRV01 Second computer: SRV02 Replication group: "RG24"
Are you sure you want to continue to remove this connection?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y

This command removes the connection from the computer named SRV01 to the computer named SRV02 in the replication group named RG24.

Example 2: Remove a connection between members of a replication group without a confirmation

PS C:\> Remove-DfsrConnection -GroupName "RG24" -SourceComputerName "SRV02" -DestinationComputerName "SRV01" -Force

This command removes the connection from the computer named SRV01 to the computer named SRV02 without prompting you to confirm the removal.

Required Parameters

-DestinationComputerName

Specifies the name of the receiving computer. A receiving computer is also called an inbound or downstream computer.

Type: String
Aliases: ReceivingMember, RMem
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-GroupName

Specifies an array of names of replication groups. You can use a comma separated list and the wildcard character (*).

Type: String[]
Aliases: RG, RgName
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-SourceComputerName

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

Type: String
Aliases: SendingMember, SMem
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Aliases: cf
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-DomainName

Specifies the NetBIOS name or fully qualified domain name (FQDN) for the Active Directory Domain Service (AD DS) domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the domain of the current user.

Type: String
Position: 100
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Aliases: wi
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Inputs

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, string

Outputs

None