API Reference
Class
LocalGpoSnapshot
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}
- Policy definitions.
Returns
Audit results for unmatched entries.
public LocalGpoComparison Compare(LocalGpoSnapshot other) #Returns:
LocalGpoComparisonCompares two snapshots and returns the differences.
Parameters
- other ADPlayground.Gpo.GpoLocal.LocalGpoSnapshot
- 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:
LocalGpoSnapshotLoads a snapshot from a .pol file.
Parameters
- path System.String
- Path to the .pol file.
Returns
The loaded snapshot.
public static LocalGpoSnapshot Load(String polPath, String commentPath) #Returns:
LocalGpoSnapshotLoads a snapshot from a .pol file and optional .cmtx comment file.
Parameters
- polPath System.String
- Path to the .pol file.
- commentPath System.String
- Path to the .cmtx file or null.
Returns
The loaded snapshot.
Inherited Methods
Properties
public IReadOnlyList<PolEntry> Entries { get; } #Gets the list of policy entries.