TestimoX

API Reference

Command

Remove-CxFirewallRule

Namespace ComputerX.PowerShell

Removes a Windows Firewall rule by display name.

Examples

Authored help example

Example 1: Removes a locally defined firewall rule used during a temporary troubleshooting window.

PS>


Remove-CxFirewallRule -Name 'Allow WinRM 5985 (Temporary)'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Remove-CxFirewallRule -Name <string> [<CommonParameters>]
#

Parameters

Name string requiredposition: 0pipeline: false
Name of the firewall rule to remove.