API Reference
Command
Set-CxFirewallDefault
Sets default inbound/outbound action for selected profiles.
Examples
Generated fallback example from command syntax.
Set-CxFirewallDefault -Profile 'Domain'
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
Set-CxFirewallDefault -Profile <Domain|Private|Public|All> [-Inbound <Block|Allow>] [-Outbound <Block|Allow>] [<CommonParameters>]#Parameters
- Profile FirewallProfileKind
- Profile flags: Domain, Private, Public (or All). Possible values: Domain, Private, Public, All
- Possible values:
Domain,Private,Public,All - Inbound FirewallAction
- Default inbound action (Allow or Block). Optional; omit to leave unchanged. Possible values: Block, Allow
- Possible values:
Block,Allow - Outbound FirewallAction
- Default outbound action (Allow or Block). Optional; omit to leave unchanged. Possible values: Block, Allow
- Possible values:
Block,Allow