Skip to main content

windows.firewall

Description

Windows Firewall resource

Fields

IDTYPEDESCRIPTION
settingsdictGlobal firewall settings
profiles[]windows.firewall.profileSettings that apply to the per-profile configurations of the Windows Firewall with Advanced Security
rules[]windows.firewall.ruleFirewall rules

Examples

Check a specific Windows Firewall rule

windows.firewall.rules.where ( displayName == "File and Printer Sharing (Echo Request - ICMPv4-In)") {
enabled == 1
}