TestimoX

API Reference

Class

LocalGpoSnapshot

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers sealed

Represents a snapshot of configured Local Group Policy settings.

Inheritance

  • Object
  • LocalGpoSnapshot

Methods

public IEnumerable<PolicyAuditResult> AuditAgainst(IEnumerable<PolicyDefinition> definitions) #
Returns: IEnumerable<PolicyAuditResult>

Audits this snapshot against policy definitions.

Parameters

definitions System.Collections.Generic.IEnumerable{ADPlayground.Gpo.GpoLocal.PolicyDefinition} requiredposition: 0
Policy definitions.

Returns

Audit results for unmatched entries.

public LocalGpoComparison Compare(LocalGpoSnapshot other) #
Returns: LocalGpoComparison

Compares two snapshots and returns the differences.

Parameters

other ADPlayground.Gpo.GpoLocal.LocalGpoSnapshot requiredposition: 0
Snapshot to compare.

Returns

Comparison result.

public IEnumerable<PolEntry> Enumerate() #
Returns: IEnumerable<PolEntry>

Enumerates configured policy entries.

Returns

Enumeration of PolEntry.

Load 2 overloads
public static LocalGpoSnapshot Load(String path) #
Returns: LocalGpoSnapshot

Loads a snapshot from a .pol file.

Parameters

path System.String requiredposition: 0
Path to the .pol file.

Returns

The loaded snapshot.

public static LocalGpoSnapshot Load(String polPath, String commentPath) #
Returns: LocalGpoSnapshot

Loads a snapshot from a .pol file and optional .cmtx comment file.

Parameters

polPath System.String requiredposition: 0
Path to the .pol file.
commentPath System.String requiredposition: 1
Path to the .cmtx file or null.

Returns

The loaded snapshot.

Properties

public IReadOnlyList<PolEntry> Entries { get; } #

Gets the list of policy entries.