TestimoX

API Reference

Command

Get-CxFirewallRule

Namespace ComputerX.PowerShell
Inputs
System.String[]
Outputs
ComputerX.Firewall.FirewallRuleInfo

Lists active Windows Firewall rules, with optional name filtering.

Examples

Generated fallback example

Generated fallback example from command syntax.


Get-CxFirewallRule -Name @('Name')
        

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

Get-CxFirewallRule [-Name <string[]>] [-Action <Block|Allow>] [-Direction <Inbound|Outbound>] [-Exact] [-Profile <Domain|Private|Public|All>] [-Protocol <Tcp|Udp|Any>] [<CommonParameters>]
#

Parameters

Name string[] optionalposition: 0pipeline: true (ByPropertyName)
Display name filter(s). Supports wildcards unless -Exact is used.
Action FirewallAction optionalposition: namedpipeline: falsevalues: 2
Filter by action (Allow or Block). Possible values: Block, Allow
Possible values: Block, Allow
Direction FirewallDirection optionalposition: namedpipeline: falsevalues: 2
Filter by direction (Inbound/Outbound). Possible values: Inbound, Outbound
Possible values: Inbound, Outbound
Exact SwitchParameter optionalposition: namedpipeline: false
Match names exactly (case-insensitive), no wildcard expansion.
Profile FirewallProfileKind optionalposition: namedpipeline: falsevalues: 4
Filter by profiles (flags match). Example: -Profile Domain,Private. Possible values: Domain, Private, Public, All
Possible values: Domain, Private, Public, All
Protocol FirewallProtocol optionalposition: namedpipeline: falsevalues: 3
Filter by protocol (Tcp/Udp/Any). Possible values: Tcp, Udp, Any
Possible values: Tcp, Udp, Any

Outputs

ComputerX.Firewall.FirewallRuleInfo