TestimoX

API Reference

Class

LgpoPolicyApplyService

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

Builds and executes an apply plan for setting an ADMX policy into Local GPO. Keeps PowerShell wrapper thin by moving resolution and .pol manipulation into the engine.

Inheritance

  • Object
  • LgpoPolicyApplyService

Methods

public static ApplyPlan Build(String policyIdOrName, PolicyState state, IDictionary<String, Object> options, RegistryPolicyScope scope, String userSid, String admxDirectory, String language, Boolean backup) #
Returns: ApplyPlan

Builds an apply plan for a given policy.

Parameters

policyIdOrName System.String requiredposition: 0
state ADPlayground.Gpo.GpoLocal.PolicyState requiredposition: 1
options System.Collections.Generic.IDictionary{System.String,System.Object} requiredposition: 2
scope ADPlayground.Gpo.Policy.RegistryPolicyScope requiredposition: 3
userSid System.String requiredposition: 4
admxDirectory System.String requiredposition: 5
language System.String requiredposition: 6
backup System.Boolean requiredposition: 7
public static ApplyResult Execute(ApplyPlan plan, Boolean apply) #
Returns: ApplyResult

Executes the apply plan. When apply is false, no writes are performed (dry run).

Parameters

plan ADPlayground.Gpo.GpoLocal.LgpoPolicyApplyService.ApplyPlan requiredposition: 0
apply System.Boolean requiredposition: 1