Revoke-Dfsr Delegation

Revokes permissions to security principals for a replication group.

Syntax

Revoke-DfsrDelegation
      [-GroupName] <String[]>
      [-AccountName] <String[]>
      [-Force]
      [[-DomainName] <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Revoke-DfsrDelegation cmdlet revokes delegated permissions for users or groups for a replication group. For more information about delegation in the Distributed File System (DFS) Replication service, see the documentation for the Grant-DfsrDelegation cmdlet.

Examples

Example 1: Revoke delegated permissions

PS C:\> Revoke-DfsrDelegation -GroupName "RG01" -AccountName "DFSR Admins"
This operation will revoke delegation of permissions on the replication group named "RG01" for the account named DFSR
Admins. 
Are you sure you want to revoke delegation of permissions on this replication group? 
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):

This command revokes delegated permissions for the security group named DFSR Admins for a replication group named RG01.

Example 2: Revoke delegated permissions without confirmation

PS C:\> Revoke-DfsrDelegation -GroupName "RG02 -AccountName "DFSR Admins" -Verbose -Force
VERBOSE: Performing the operation "Revoke-DfsrDelegation" on target "RG02".
VERBOSE: Successfully revoked delegation of permissions on the replication group named "RG02" for the account named
DFSR Admins

This command revokes delegated permissions for the security group named DFSR Admins for a replication group named RG02. This command specifies the Force parameter, and, therefore, it does not prompt you to confirm the removal. The command specifies the Verbose common parameter, so it prints details of the operation.

Required Parameters

-AccountName

Specifies an array of names of security principals. This cmdlet revokes permissions to the users and groups that this parameter specifies.

Type: String[]
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-GroupName

Specifies an array of names of replication groups.

Type: String[]
Aliases: RG, RgName
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Aliases: cf
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DomainName

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.

Type: String
Position: 100
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Aliases: wi
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Inputs

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, String[], String

Outputs

Microsoft.DistributedFileSystemReplication.DfsrDelegation