API Reference
Command
Set-ADXGpoPermission
Sets (replaces) GPO DACL entries to a desired state.
Examples
Example 1: Replace GPO permissions on the Default Domain Policy with a curated ACL
$acl = @( [ADPlayground.Gpo.GpoAclEntry]::Allow('CONTOSO\GG-GPO-Editors','Edit') )
Set-ADXGpoPermission -Domain 'contoso.com' -Id '31B2F340-016D-11D2-945F-00C04FB984F9' -Acl $acl
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-ADXGpoPermission -Acl <GpoAclEntry[]> -Domain <string> -Id <Guid> [<CommonParameters>]#Parameters
- Acl GpoAclEntry[]
- Desired ACL entries to apply (replaces existing according to service behavior).
- Domain string
- DNS domain name where the GPO resides.
- Id Guid
- GPO GUID (groupPolicyContainer objectGuid).
Outputs
System.Boolean