Condividi tramite


Remove-DfsrConnection

Remove-DfsrConnection

Removes a connection between members of a replication group.

Sintassi

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

Descrizione dettagliata

The Remove-DfsrConnection cmdlet removes a connection between members of a replication group. After you remove the connections between a pair of server, the 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.

Parametri

-DestinationComputerName<String>

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

Alias

ReceivingMember,RMem

Obbligatorio?

true

Posizione?

3

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-DomainName<String>

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.

Alias

nessuno

Obbligatorio?

false

Posizione?

101

Valore predefinito

[Current Domain]

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-Force

Forza l'esecuzione del comando senza chiedere conferma all'utente.

Alias

nessuno

Obbligatorio?

false

Posizione?

4

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-GroupName<String[]>

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

Alias

RG,RgName

Obbligatorio?

true

Posizione?

1

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByValue, ByPropertyName)

Accetta caratteri jolly?

true

-SourceComputerName<String>

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

Alias

SendingMember,SMem

Obbligatorio?

true

Posizione?

2

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-Confirm

Richiede conferma prima di eseguire il cmdlet.

Obbligatorio?

false

Posizione?

named

Valore predefinito

False

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-WhatIf

Mostra gli effetti dell'esecuzione del cmdlet. Il cmdlet non viene eseguito.

Obbligatorio?

false

Posizione?

named

Valore predefinito

False

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, string

Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

  • [none]

Esempi

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

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

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

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

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

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

Argomenti correlati

Get-DfsrConnection

Add-DfsrConnection

Set-DfsrConnection