API Reference
Class
SpolApplyService
Centralized SPOL import/merge helpers (Simple and PolicyPlus formats).
Inheritance
- Object
- SpolApplyService
Methods
ApplyPolicyPlusSpol 2 overloads
public static Void ApplyPolicyPlusSpol(String spolText, AdmxDocument doc, Boolean userScope, String userSid, String polPath, Action<String> onPolicyMissing = null) #Returns:
VoidApplies PolicyPlus SPOL text to a target pol, resolving policy IDs via ADMX and writing per-policy comments when present.
Parameters
- spolText System.String
- doc ADPlayground.Gpo.GpoLocal.AdmxDocument
- userScope System.Boolean
- userSid System.String
- polPath System.String
- onPolicyMissing System.Action{System.String} = null
public static SpolApplyReport ApplyPolicyPlusSpol(String spolText, AdmxDocument doc, Boolean userScope, String userSid, String polPath) #Returns:
SpolApplyReportApplies Policy Plus (.spol) text and returns a report; does not emit warnings.
Parameters
- spolText System.String
- doc ADPlayground.Gpo.GpoLocal.AdmxDocument
- userScope System.Boolean
- userSid System.String
- polPath System.String
public static Void ApplySimpleSpol(String spolText, String polPath) #Returns:
VoidMerges Simple SPOL text (Key|Value|Kind|Data) into an LGPO pol file at polPath.
Parameters
- spolText System.String
- polPath System.String
public static SpolPreviewResult PreviewPolicyPlusSpol(String spolText, AdmxDocument doc, Boolean userScope, String userSid, String polPath) #Returns:
SpolPreviewResultComputes a preview of applying Policy Plus (.spol) to the target pol file without writing changes.
Parameters
- spolText System.String
- doc ADPlayground.Gpo.GpoLocal.AdmxDocument
- userScope System.Boolean
- userSid System.String
- polPath System.String