TestimoX

API Reference

Class

AdmxPolicyArtifactService

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

Generates portable artifacts such as .reg content and PowerShell scripts for a single ADMX policy state.

Inheritance

  • Object
  • AdmxPolicyArtifactService

Methods

public static AdmxPolicyArtifact Generate(String policyIdOrName, PolicyState state, Nullable<PolicyScope> scope = null, IDictionary<String, Object> options = null, String admxDirectory = null, String language = null) #
Returns: AdmxPolicyArtifact

Resolves a policy and generates registry-oriented artifacts for the requested state.

Parameters

policyIdOrName System.String requiredposition: 0
Policy display name, internal name, or source-qualified identifier.
state ADPlayground.Gpo.GpoLocal.PolicyState requiredposition: 1
Desired policy state.
scope System.Nullable{ADPlayground.Gpo.GpoLocal.PolicyScope} = null optionalposition: 2
Optional explicit scope override. Defaults to the policy class when possible.
options System.Collections.Generic.IDictionary{System.String,System.Object} = null optionalposition: 3
Optional element options keyed by ADMX element id.
admxDirectory System.String = null optionalposition: 4
Optional explicit PolicyDefinitions directory.
language System.String = null optionalposition: 5
Preferred ADML language.

Returns

Typed artifact set containing operations, .reg content, and PowerShell script.