API Reference
EffectivePolicyService
Entry point for effective policy evaluation (partial). See companion partials for plan building, pair evaluation, single-scope getters, enrichment, and trace helpers.
Inheritance
- Object
- EffectivePolicyService
Methods
public static EffectivePolicyDetails Get(String domainName, String distinguishedName, RegistryPolicyScope scope, String admxDirectory, String language = null, Boolean includeSites = false, IEnumerable<String> siteNames = null) #EffectivePolicyDetailsComputes effective policy and maps it to ADMX definitions using the specified ADMX repository.
Parameters
- domainName System.String
- Domain DNS name.
- distinguishedName System.String
- Object DN (user, computer or OU).
- scope ADPlayground.Gpo.Policy.RegistryPolicyScope
- Policy scope (Computer/User).
- admxDirectory System.String
- Path to ADMX repository (null/empty to use defaults).
- language System.String = null
- Preferred ADML language (e.g., en-US). Optional.
- includeSites System.Boolean = false
- When true, include site-linked GPOs in evaluation.
- siteNames System.Collections.Generic.IEnumerable{System.String} = null
- Optional explicit site names; when null, inferred from object location.
Returns
Effective policy details including mapped settings and unknown values.
public static EffectivePolicyDetails Get(String domainName, String distinguishedName, RegistryPolicyScope scope, String admxDirectory, String language, GpoTargetComputerContext context, GpoApplicabilityOptions options, IEnumerable<String> siteNames = null, Boolean includeGpoDetails = false, Boolean includeAllLinkedDetails = false) #EffectivePolicyDetailsComputes effective policy using applicability (WMI + security + optional sites) evaluated against a target computer context, then maps to ADMX definitions.
Parameters
- domainName System.String
- distinguishedName System.String
- scope ADPlayground.Gpo.Policy.RegistryPolicyScope
- admxDirectory System.String
- language System.String
- context ADPlayground.Gpo.Policy.GpoTargetComputerContext
- options ADPlayground.Gpo.Policy.GpoApplicabilityOptions
- siteNames System.Collections.Generic.IEnumerable{System.String} = null
- includeGpoDetails System.Boolean = false
- includeAllLinkedDetails System.Boolean = false
public static EffectivePolicyPair GetPair(String domainName, String userDistinguishedName, String computerDistinguishedName, String admxDirectory, String language = null, Boolean includeSites = false, IEnumerable<String> siteNames = null, GpoTargetComputerContext context = null, GpoApplicabilityOptions applicability = null, Boolean includeGpoDetails = false, Boolean includeAllLinkedDetails = false) #EffectivePolicyPairComputes effective policy for a (User, Computer) pair, applying loopback (Merge/Replace) when configured on the computer. Returns typed plans for both paths and merged EffectivePolicyDetails for User and Computer scopes.
Parameters
- domainName System.String
- userDistinguishedName System.String
- computerDistinguishedName System.String
- admxDirectory System.String
- language System.String = null
- includeSites System.Boolean = false
- siteNames System.Collections.Generic.IEnumerable{System.String} = null
- context ADPlayground.Gpo.Policy.GpoTargetComputerContext = null
- applicability ADPlayground.Gpo.Policy.GpoApplicabilityOptions = null
- includeGpoDetails System.Boolean = false
- includeAllLinkedDetails System.Boolean = false
public static IReadOnlyList<GpoApplicationPlanEntry> GetPlanForDn(String domainName, String distinguishedName, RegistryPolicyScope scope, Boolean includeSites = false, IEnumerable<String> siteNames = null, GpoTargetComputerContext context = null, GpoApplicabilityOptions options = null) #IReadOnlyList<GpoApplicationPlanEntry>Public wrapper to build the application plan (links + gating + optional applicability) for an arbitrary DN.
Parameters
- domainName System.String
- distinguishedName System.String
- scope ADPlayground.Gpo.Policy.RegistryPolicyScope
- includeSites System.Boolean = false
- siteNames System.Collections.Generic.IEnumerable{System.String} = null
- context ADPlayground.Gpo.Policy.GpoTargetComputerContext = null
- options ADPlayground.Gpo.Policy.GpoApplicabilityOptions = null