TestimoX

API Reference

Class

SupportEvaluator

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

Evaluation of ADMX SupportedOn definitions against a target OS. Attempts precise logic (AnyOf/AllOf over referenced products). Falls back to caption heuristics when definitions lack entries.

Inheritance

  • Object
  • SupportEvaluator

Methods

public static PolicySupportResult Evaluate(AdmxDocument doc, PolicyDefinition policy, String computerName) #
Returns: PolicySupportResult

Produces a typed result for SupportedOn evaluation so callers don’t build PSObjects.

Parameters

doc ADPlayground.Gpo.GpoLocal.AdmxDocument requiredposition: 0
policy ADPlayground.Gpo.GpoLocal.PolicyDefinition requiredposition: 1
computerName System.String requiredposition: 2
HasProductVersionInRange(ADPlayground.Gpo.GpoLocal.AdmxDocument arg1, System.String arg2, System.Nullable{System.Int32} arg3, System.Nullable{System.Int32} arg4, System.String arg5) #

Returns true when any major version in range [min,max] is present for the given root product.

Parameters

arg1 ADPlayground.Gpo.GpoLocal.AdmxDocument required
arg2 System.String required
arg3 System.Nullable{System.Int32} required
arg4 System.Nullable{System.Int32} required
arg5 System.String required
public static Nullable<Boolean> IsSupportedOn(AdmxDocument doc, PolicyDefinition policy, String computerName, out String supportDisplay, out String osCaption) #
Returns: Nullable<Boolean>

Returns whether a policy appears supported on the target OS based on "SupportedOn" definition text. Emits best-effort result; returns null when evaluation is inconclusive.

Parameters

doc ADPlayground.Gpo.GpoLocal.AdmxDocument requiredposition: 0
policy ADPlayground.Gpo.GpoLocal.PolicyDefinition requiredposition: 1
computerName System.String requiredposition: 2
supportDisplay System.String@ requiredposition: 3
osCaption System.String@ requiredposition: 4