TestimoX

API Reference

Command

Set-CxFirewallDefault

Namespace ComputerX.PowerShell

Sets default inbound/outbound action for selected profiles.

Examples

Generated fallback example

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 requiredposition: 0pipeline: falsevalues: 4
Profile flags: Domain, Private, Public (or All). Possible values: Domain, Private, Public, All
Possible values: Domain, Private, Public, All
Inbound FirewallAction optionalposition: 1pipeline: falsevalues: 2
Default inbound action (Allow or Block). Optional; omit to leave unchanged. Possible values: Block, Allow
Possible values: Block, Allow
Outbound FirewallAction optionalposition: 2pipeline: falsevalues: 2
Default outbound action (Allow or Block). Optional; omit to leave unchanged. Possible values: Block, Allow
Possible values: Block, Allow