TestimoX

API Reference

Class

GpoAclUpdater

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Provides update operations for the ACL (DACL + owner) of a GPO groupPolicyContainer object.

Inheritance

  • Object
  • GpoAclUpdater

Methods

public static Boolean AddPermission(String domainName, Guid gpoId, String identity, GpoPermissionRight rights) #
Returns: Boolean

Adds (ensures) a permission entry for the specified identity on the target GPO.

Parameters

domainName System.String requiredposition: 0
gpoId System.Guid requiredposition: 1
identity System.String requiredposition: 2
rights ADPlayground.Gpo.GpoPermissionRight requiredposition: 3
public static Boolean RemovePermission(String domainName, Guid gpoId, String identity) #
Returns: Boolean

Removes all explicit ACEs for the specified identity from the target GPO.

Parameters

domainName System.String requiredposition: 0
gpoId System.Guid requiredposition: 1
identity System.String requiredposition: 2
public static Boolean RestoreDefault(String domainName, Guid gpoId) #
Returns: Boolean

Restores a baseline/default ACL on the specified GPO (Domain Admins, Enterprise Admins, SYSTEM, Authenticated Users).

Parameters

domainName System.String requiredposition: 0
gpoId System.Guid requiredposition: 1
public static Boolean SetPermission(String domainName, Guid gpoId, String identity, GpoPermissionRight rights) #
Returns: Boolean

Sets (replaces) the effective permission level for a single identity.

Parameters

domainName System.String requiredposition: 0
gpoId System.Guid requiredposition: 1
identity System.String requiredposition: 2
rights ADPlayground.Gpo.GpoPermissionRight requiredposition: 3
public static Boolean SetPermissions(String domainName, Guid gpoId, IEnumerable<GpoAclEntry> entries) #
Returns: Boolean

Applies desired ACL entries to a GPO (best-effort, applies entries grouped by SID).

Parameters

domainName System.String requiredposition: 0
gpoId System.Guid requiredposition: 1
entries System.Collections.Generic.IEnumerable{ADPlayground.Gpo.GpoAclEntry} requiredposition: 2