API Reference
Class
LgpoPolicyApplyService
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:
ApplyPlanBuilds an apply plan for a given policy.
Parameters
- policyIdOrName System.String
- state ADPlayground.Gpo.GpoLocal.PolicyState
- options System.Collections.Generic.IDictionary{System.String,System.Object}
- scope ADPlayground.Gpo.Policy.RegistryPolicyScope
- userSid System.String
- admxDirectory System.String
- language System.String
- backup System.Boolean
public static ApplyResult Execute(ApplyPlan plan, Boolean apply) #Returns:
ApplyResultExecutes the apply plan. When apply is false, no writes are performed (dry run).
Parameters
- plan ADPlayground.Gpo.GpoLocal.LgpoPolicyApplyService.ApplyPlan
- apply System.Boolean