TestimoX

API Reference

Class

EffectiveComputerPolicyService

Namespace ADPlayground.Gpo.Policy
Assembly ADPlayground
Modifiers static

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: GpoRegistryPolicySet

Convenience: computes effective Computer Configuration policy for the OU chain where the computer account resides.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
computerDn System.String requiredposition: 1
Distinguished name of the computer account.
context ADPlayground.Gpo.Policy.GpoTargetComputerContext requiredposition: 2
Target computer context (role/sites/token SIDs).
options ADPlayground.Gpo.Policy.GpoApplicabilityOptions = null optionalposition: 3
Applicability options.
public static GpoRegistryPolicySet GetEffectiveForTarget(String domainName, String targetDn, GpoTargetComputerContext context, GpoApplicabilityOptions options = null) #
Returns: GpoRegistryPolicySet

Computes effective Computer Configuration policy for targetDn using link precedence and applicability (WMI/security) evaluated against context.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
targetDn System.String requiredposition: 1
Target distinguished name (e.g., OU of the computer, domain DN, site DN).
context ADPlayground.Gpo.Policy.GpoTargetComputerContext requiredposition: 2
Target computer context (role, optional token SIDs, sites).
options ADPlayground.Gpo.Policy.GpoApplicabilityOptions = null optionalposition: 3
Applicability options (WMI/security/site inclusion, scope).

Returns

Merged effective policy set.