PowerShell Module to manage the Windows Firewall
| Command | Synopsis |
|---|---|
| Get-WindowsFirewallAppPath | Gets dynamic application path for specified application |
| Get-WindowsFirewallRule | Gets all properties of a Windows firewall rule |
| Get-WindowsFirewallRuleExpiration | Gets expiration of a temporary firewall rule |
| Get-WindowsFirewallRuleSDDLString | Generates SDDL string for use with secure firewall rule |
| New-WindowsFirewallRule | Creates a new Windows firewall rule |
| New-WindowsFirewallTempRule | Creates a new Windows firewall temporary rule |
| Set-WindowsFirewallProfile | Configures a Windows firewall profile |
| Set-WindowsFirewallRule | Applies a specified Windows firewall JSON ruleset |
| Test-WindowsFirewallHealthProbe | Tests Windows firewall health and attempts remediation |
To apply a set of JSON-defined Windows firewall rules
> Set-WindowsFirewallRule -RuleFile FirewallRules.jsonTo configure the Windows firewall profile
> Set-WindowsFirewallProfile -NetworkProfile Domain -DefaultInboundAction Block -DefaultOutboundAction Allow