Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Grant-DfsrDelegation

Brian Lich|Last Updated: 3/26/2017

SYNOPSIS

Grants permissions to security principals for a replication group.

SYNTAX

Grant-DfsrDelegation [-GroupName] <String[]> [-AccountName] <String[]> [-Force] [[-DomainName] <String>]
 [-WhatIf] [-Confirm] [<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.

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[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GroupName

Specifies an array of names of replication groups.

Type: String[]
Parameter Sets: (All)
Aliases: RG, RgName

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, String[], String

OUTPUTS

Microsoft.DistributedFileSystemReplication.DfsrDelegation

NOTES

Get-DfsrDelegation

Revoke-DfsrDelegation

© 2017 Microsoft