API Reference
Class
FirewallPolicyReader
Summarizes Windows Firewall policy from registry.pol (rule counts and profiles) and parses individual rules.
Inheritance
- Object
- FirewallPolicyReader
Methods
public static FirewallPolicySummary FromPol(PolFile pol, String domainName, Guid gpoId) #Returns:
FirewallPolicySummaryCounts firewall rule entries per profile and Connection Security rules.
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- Parsed registry.pol model.
- domainName System.String
- Domain DNS name.
- gpoId System.Guid
- GPO identifier.
Returns
Firewall rule counts summary.
public static IReadOnlyList<FirewallRuleEntry> ParseRules(PolFile pol, String domainName, Guid gpoId) #Returns:
IReadOnlyList<FirewallRuleEntry>Parses firewall rules from registry.pol strings into a structured model.
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- Parsed registry.pol model.
- domainName System.String
- Domain DNS name.
- gpoId System.Guid
- GPO identifier.
Returns
List of parsed firewall rule entries.