API Reference
Class
EffectiveComputerPolicyService
High-level helpers to compute effective Computer Configuration registry policy for arbitrary targets (site/domain/OU/computer DN) after applying GPO applicability (WMI + security filtering) for a given computer context.
Inheritance
- Object
- EffectiveComputerPolicyService
Methods
public static GpoRegistryPolicySet GetEffectiveForComputer(String domainName, String computerDn, GpoTargetComputerContext context, GpoApplicabilityOptions options = null) #Returns:
GpoRegistryPolicySetConvenience: computes effective Computer Configuration policy for the OU chain where the computer account resides.
Parameters
- domainName System.String
- DNS domain name.
- computerDn System.String
- Distinguished name of the computer account.
- context ADPlayground.Gpo.Policy.GpoTargetComputerContext
- Target computer context (role/sites/token SIDs).
- options ADPlayground.Gpo.Policy.GpoApplicabilityOptions = null
- Applicability options.
public static GpoRegistryPolicySet GetEffectiveForTarget(String domainName, String targetDn, GpoTargetComputerContext context, GpoApplicabilityOptions options = null) #Returns:
GpoRegistryPolicySetComputes effective Computer Configuration policy for targetDn using link precedence and applicability (WMI/security) evaluated against context.
Parameters
- domainName System.String
- DNS domain name.
- targetDn System.String
- Target distinguished name (e.g., OU of the computer, domain DN, site DN).
- context ADPlayground.Gpo.Policy.GpoTargetComputerContext
- Target computer context (role, optional token SIDs, sites).
- options ADPlayground.Gpo.Policy.GpoApplicabilityOptions = null
- Applicability options (WMI/security/site inclusion, scope).
Returns
Merged effective policy set.