Edit

Share via


Remove-DfsrConnection

Removes a connection between members of a replication group.

Syntax

Default (Default)

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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DestinationComputerName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False
Aliases:ReceivingMember, RMem

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments: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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:100
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Force

Forces the command to run without asking for user confirmation.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-GroupName

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

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:True
DontShow:False
Aliases:RG, RgName

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-SourceComputerName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False
Aliases:SendingMember, SMem

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

string

Outputs

None