Grant-DfsrDelegation

Grants permissions to security principals for a replication group.

Syntax

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

Description

The Grant-DfsrDelegation cmdlet grants users or groups permission to create replicated folders, connections, members, and memberships inside a replication group. Delegation allows users who are local administrators on servers that run the Distributed File System (DFS) Replication service to administer the Active Directory Domain Services (AD DS) portions of the replication topology, without being domain administrators.

Examples

Example 1: Grant delegated permissions

PS C:\> Grant-DfsrDelegation -GroupName "RG01" -AccountName "DFSR Admins"
GroupName   : RG01
AccountName : TSQA\DFSR Admins
IsInherited : False

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

Required Parameters

-AccountName

Specifies an array of names of security principals. This cmdlet assigns 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 AD DS domain that contains a 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