TestimoX

API Reference

Class

PolicyPlusSerializer

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

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: String

Exports a POL model to Policy Plus Semantic Policy text.

Parameters

pol ADPlayground.Gpo.GpoLocal.PolFile requiredposition: 0
Source POL model.
doc ADPlayground.Gpo.GpoLocal.AdmxDocument requiredposition: 1
Compiled ADMX document.
userScope System.Boolean requiredposition: 2
True to export as user scope (U); false for computer scope (C).
userSid System.String requiredposition: 3
Optional user SID used for LGPO comment lookup.
categoryPattern System.String requiredposition: 4
Optional wildcard to filter categories (DisplayName or Name).
includeNotConfiguredWithComment System.Boolean requiredposition: 5
Include Not Configured entries if a comment exists.
includeMetadataInComment System.Boolean = false optionalposition: 6
Append metadata hints to comments.
excludeCommentLines System.Boolean = false optionalposition: 7
If true, do not emit Comment: lines.

Returns

Semantic Policy text.