TestimoX

API Reference

Command

Set-CxFirewallLogging

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
System.Boolean

Sets Windows Firewall logging settings for a profile.

Examples

Authored help example

Example 1


Set-CxFirewallLogging -Profile Domain -LogDroppedPackets $true -LogSuccessfulConnections $false -LogFileSizeKB 16384
        

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-CxFirewallLogging [-ComputerName <string>] -Profile <Domain|Private|Public|All> [-LogFilePath <string>] [-LogFileSizeKB <int>] [-LogDroppedPackets <bool>] [-LogSuccessfulConnections <bool>] [-Policy] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
Profile FirewallProfileKind requiredposition: 1pipeline: falsevalues: 4
Gets or sets the Profile parameter. Possible values: Domain, Private, Public, All
Possible values: Domain, Private, Public, All
LogFilePath string optionalposition: 2pipeline: false
Gets or sets the LogFilePath parameter.
LogFileSizeKB int optionalposition: 3pipeline: false
Gets or sets the LogFileSizeKB parameter.
LogDroppedPackets bool optionalposition: 4pipeline: false
Gets or sets the LogDroppedPackets parameter.
LogSuccessfulConnections bool optionalposition: 5pipeline: false
Gets or sets the LogSuccessfulConnections parameter.
Policy SwitchParameter optionalposition: namedpipeline: false
Gets or sets the Policy parameter.

Outputs

System.Boolean