Grant-DfsrDelegation
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[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Force
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GroupName
Specifies an array of names of replication groups.
Type: | String[] |
Aliases: | RG, RgName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, String[], String
Outputs
Microsoft.DistributedFileSystemReplication.DfsrDelegation