API Reference
Class
AdmxPolicyArtifactService
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:
AdmxPolicyArtifactResolves a policy and generates registry-oriented artifacts for the requested state.
Parameters
- policyIdOrName System.String
- Policy display name, internal name, or source-qualified identifier.
- state ADPlayground.Gpo.GpoLocal.PolicyState
- Desired policy state.
- scope System.Nullable{ADPlayground.Gpo.GpoLocal.PolicyScope} = null
- Optional explicit scope override. Defaults to the policy class when possible.
- options System.Collections.Generic.IDictionary{System.String,System.Object} = null
- Optional element options keyed by ADMX element id.
- admxDirectory System.String = null
- Optional explicit PolicyDefinitions directory.
- language System.String = null
- Preferred ADML language.
Returns
Typed artifact set containing operations, .reg content, and PowerShell script.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object