Condividi tramite


Remove-DfsReplicationGroup

Remove-DfsReplicationGroup

Removes a replication group.

Sintassi

Parameter Set: Default
Remove-DfsReplicationGroup [-GroupName] <String[]> [[-DomainName] <String> ] [-Force] [-RemoveReplicatedFolders] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descrizione dettagliata

The Remove-DfsReplicationGroup cmdlet removes a replication group.

When you remove a replication group, you remove the group from Active Directory, and you also delete all associated aspects of the DFS Replication topology for that replication group, such as members, memberships, and connections. All replication halts on all members. This operation does not delete any replicated file data or private data. Use this command only when you decommission a replication group.

Parametri

-DomainName<String>

Specifies a NetBIOS or fully qualified domain name (FQDN) for an Active Directory domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the current domain.

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. Use this parameter for scripted removal of replication groups.

Alias

nessuno

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-GroupName<String[]>

Specifies an array of names of replication groups. You can specify multiple groups, separated by commas, as well as wildcard characters (*).

If the replication group contains any replicated folders, you must specify the RemoveReplicatedFolders switch parameter.

Alias

RG,RgName

Obbligatorio?

true

Posizione?

1

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByValue, ByPropertyName)

Accetta caratteri jolly?

true

-RemoveReplicatedFolders

Indicates that the cmdlet removes any replicated folders belonging to the replication group prior to deleting the replication group.

Alias

nessuno

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

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

Output

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

  • [none]

Esempi

Example 1: Remove a replication group

This command removes the replication group named RG01 from the current domain.

PS C:\> Remove-DfsReplicationGroup -GroupName "RG01"

Example 2: Remove replication groups using a wildcard

This command removes all replication groups that include the pattern RG* in domain corp.contoso.com, even if the groups include replicated folders.

PS C:\> Remove-DfsReplicationGroup -GroupName "RG*" -RemoveReplicatedFolders -Domain corp.contoso.com -RemoveReplicatedFolders

Argomenti correlati

Get-DfsReplicationGroup

New-DfsReplicationGroup

Set-DfsReplicationGroup