API Reference
Class
PolicyPlusSerializer
Export helpers for emitting PolicyPlus Semantic Policy text.
Inheritance
- Object
- PolicyPlusSerializer
Methods
public static String Export(PolFile pol, AdmxDocument doc, Boolean userScope, String userSid, String categoryPattern, Boolean includeNotConfiguredWithComment, Boolean includeMetadataInComment = false, Boolean excludeCommentLines = false) #Returns:
StringExports a POL model to Policy Plus Semantic Policy text.
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- Source POL model.
- doc ADPlayground.Gpo.GpoLocal.AdmxDocument
- Compiled ADMX document.
- userScope System.Boolean
- True to export as user scope (U); false for computer scope (C).
- userSid System.String
- Optional user SID used for LGPO comment lookup.
- categoryPattern System.String
- Optional wildcard to filter categories (DisplayName or Name).
- includeNotConfiguredWithComment System.Boolean
- Include Not Configured entries if a comment exists.
- includeMetadataInComment System.Boolean = false
- Append metadata hints to comments.
- excludeCommentLines System.Boolean = false
- If true, do not emit Comment: lines.
Returns
Semantic Policy text.