Remove-DfsReplicatedFolder

Remove-DfsReplicatedFolder

Removes a replicated folder from a replication group.

语法

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

详细说明

The Remove-DfsReplicatedFolder cmdlet removes replicated folders from a replication group. Replicated folders are logical arrangements of replication that do not contain computer-specific settings.

When you remove a replicated folder, the DFS Replication (DSFR) service cannot replicate the folder. This operation does not delete any replicated file data. Use this cmdlet only when you decommission a replicated folder.

参数

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

别名

是否为必需?

false

位置?

101

默认值

[Current Domain]

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-FolderName<String[]>

Specifies an array of names of replicated folders. You can use a comma separated list and the wildcard character (*). If you do not specify this parameter, the cmdlet gets all replicated folders.

别名

RF,RfName

是否为必需?

true

位置?

2

默认值

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

true

-Force

在不请求用户确认的情况下,强制该命令运行。

别名

是否为必需?

false

位置?

3

默认值

是否接受管道输入?

false

是否接受通配符?

false

-GroupName<String[]>

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

别名

RG,RgName

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

true

-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, string

输出

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

  • [none]

示例

Example 1: Remove a replicated folder

This command removes the replicated folder RF22 and its associated memberships from the replication group named RG11.

PS C:\> Remove-DfsReplicatedFolder -GroupName "RG11" -FolderName "RF22"

Example 2: Remove all replicated folders associated with a replication group

This command removes all replicated folders and their associated memberships from the replication group named RG11. The Force parameter specifies that the cmdlet does not prompt you to confirm that you want to remove each replicated folder.

PS C:\> Remove-DfsReplicatedFolder -GroupName "RG11" -FolderName * -Force

相关主题

Get-DfsReplicatedFolder

Set-DfsReplicatedFolder

New-DfsReplicatedFolder