API Reference
Class
ServicePolicyReader
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:
ServicePolicySetComputes effective service policy for a specific distinguished name.
Parameters
- domainName System.String
- DNS domain name.
- distinguishedName System.String
- Target distinguished name.
Returns
Effective policy view for the target container/OU.
public static ServicePolicySet GetEffectiveForDomainControllers(String domainName) #Returns:
ServicePolicySetComputes effective service policy for the Domain Controllers OU.
Parameters
- domainName System.String
- 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
- DNS domain name.
- gpoId System.Guid
- GPO identifier.
Returns
Sequence of service entries declared in the GPO.