TestimoX

API Reference

Command

Get-CxFirewallProfile

Namespace ComputerX.PowerShell
Outputs
ComputerX.Firewall.FirewallProfileInfo

Returns Windows Firewall profile settings for the selected profile scope.

Examples

Authored help example

Example 1: Returns all firewall profiles on the local machine.

PS>


Get-CxFirewallProfile
        

Example 2: Checks the public profile before validating an internet-facing server baseline.

PS>


Get-CxFirewallProfile -Profile Public | Format-List *
        

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-CxFirewallProfile [-Profile <Domain|Private|Public|All>] [<CommonParameters>]
#

Parameters

Profile FirewallProfileKind optionalposition: 0pipeline: falsevalues: 4
Optional firewall profile to retrieve. When omitted, all profiles are returned. Possible values: Domain, Private, Public, All
Possible values: Domain, Private, Public, All

Outputs

ComputerX.Firewall.FirewallProfileInfo