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
}