Remove Firewall Rule
Removes one or more Windows Firewall rules by display name or internal rule name. Use DisplayName to target rules as shown in Windows Firewall with Advanced Security, or use Name to target a rule by its internal identifier. If the specified rule does not exist, the brick completes without error.
Parameters
Section titled “Parameters”Display Name
Section titled “Display Name”Optional
The display name of the firewall rule(s) to remove, as shown in Windows Firewall with Advanced Security. Supports wildcards, e.g. ‘My App *’. Either Display Name or Name must be provided.
Optional
The internal name (rule ID) of the firewall rule to remove. Either Display Name or Name must be provided.
Details
Section titled “Details”- Category: System
- Brick ID:
FirewallRule-Remove
Raw JSON definition
Section titled “Raw JSON definition”{ "category": "system", "description": "Removes one or more Windows Firewall rules by display name or internal rule name. Use DisplayName to target rules as shown in Windows Firewall with Advanced Security, or use Name to target a rule by its internal identifier. If the specified rule does not exist, the brick completes without error.", "developerVendor": "CapaSystems A/S", "displayName": null, "id": "FirewallRule-Remove", "name": "Remove Firewall Rule", "parameters": [ { "defaultValue": "", "defaultValueObject": null, "description": "The display name of the firewall rule(s) to remove, as shown in Windows Firewall with Advanced Security. Supports wildcards, e.g. 'My App *'. Either Display Name or Name must be provided.", "id": "DisplayName", "name": "Display Name", "regExValidation": "", "required": false, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "defaultValue": "", "defaultValueObject": null, "description": "The internal name (rule ID) of the firewall rule to remove. Either Display Name or Name must be provided.", "id": "Name", "name": "Name", "regExValidation": "", "required": false, "type": "TextBox", "value": null, "values": [], "valuesObject": null } ], "powershell": { "base64Encoded": true, "function": "ZnVuY3Rpb2..." }, "type": "powerbrick", "version": "2026.7.2.1"}