TestimoX

API Reference

Class

ServicePolicyReader

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Reads GptTmpl.inf service policy sections ([Service General Setting], [Service Access Security]) and computes an effective view for a target distinguished name, honoring link order and inheritance similar to other readers.

Inheritance

  • Object
  • ServicePolicyReader

Methods

public static ServicePolicySet GetEffectiveForDn(String domainName, String distinguishedName) #
Returns: ServicePolicySet

Computes effective service policy for a specific distinguished name.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
distinguishedName System.String requiredposition: 1
Target distinguished name.

Returns

Effective policy view for the target container/OU.

public static ServicePolicySet GetEffectiveForDomainControllers(String domainName) #
Returns: ServicePolicySet

Computes effective service policy for the Domain Controllers OU.

Parameters

domainName System.String requiredposition: 0
DNS domain name.

Returns

Effective policy view for domain controllers.

public static IEnumerable<ServiceEntry> ParseServicesForGpo(String domainName, Guid gpoId) #
Returns: IEnumerable<ServiceEntry>

Parses service policy entries from a specific GPO.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
gpoId System.Guid requiredposition: 1
GPO identifier.

Returns

Sequence of service entries declared in the GPO.