Revoke-DfsrDelegation

Revoke-DfsrDelegation

Revokes delegation of permissions in a replication group.

语法

Parameter Set: Default
Revoke-DfsrDelegation [-GroupName] <String[]> [-AccountName] <String[]> [[-DomainName] <String> ] [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

详细说明

The Revoke-DfsrDelegation cmdlet revokes delegation of permissions for users or groups to create replicated folders, connections, members, and memberships inside a replication group. For information about delegation, see the Grant-DfsrDelegation cmdlet.

参数

-AccountName<String[]>

Specifies an array of security principals to remove. The security principals include users and groups.

别名

是否为必需?

true

位置?

2

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-DomainName<String>

Specifies the NetBIOS name or fully qualified domain name (FQDN) for the Active Directory® 域服务 () domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the domain of the current user.

别名

是否为必需?

false

位置?

101

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-Force

Forces the command to run without asking for user confirmation. Use this parameter for scripted revocation of delegation.

别名

是否为必需?

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 (*).

别名

RG,RgName

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

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 的对象的类型。

输出

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

示例

Example 1: Revoke delegation for a group

This command revokes delegation of permissions from the group named DFSR Admins for the replication group named RG06.

PS C:\> Revoke-DfsrDelegation -GroupName "RG06" -AccountName "DFSR Admins"

Example 2: Revoke delegtion for a group without confirmation

This command revokes delegation of permissions from the group named DFSR Admins for the replication group named RG06. The command specifies the Verbose parameter. This Windows PowerShell® common parameter causes the command to display details about the operation. For more information, type Get-Help about_CommonParameters. The command specifies the Force parameter, and, therefore, the cmdlet does not prompt you for confirmation.

PS C:\> Revoke-DfsrDelegation -GroupName RG06 -AccountName "DFSR Admins" -Verbose -Force

相关主题

Get-DfsrDelegation

Grant-DfsrDelegation