Remove-DfsReplicationGroup

Remove-DfsReplicationGroup

Removes a replication group.

语法

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

详细说明

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.

参数

-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.

别名

是否为必需?

false

位置?

101

默认值

[Current Domain]

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-Force

在不请求用户确认的情况下,强制该命令运行。 Use this parameter for scripted removal of replication groups.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

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.

别名

RG,RgName

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

true

-RemoveReplicatedFolders

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

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-Confirm

运行 cmdlet 之前提示你进行确认。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

-WhatIf

显示如果运行 cmdlet 则会发生什么情况。cmdlet 未运行。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

输出

输出类型是 cmdlet 所发出对象的类型。

  • [none]

示例

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

相关主题

Get-DfsReplicationGroup

New-DfsReplicationGroup

Set-DfsReplicationGroup