API Reference
Command
Get-CxFirewallProfile
Returns Windows Firewall profile settings for the selected profile scope.
Examples
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
- 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