API Reference
Command
Set-CxFirewallLogging
Sets Windows Firewall logging settings for a profile.
Examples
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
- Target computer(s). Use '.' for local computer or provide DNS names.
- Profile FirewallProfileKind
- Gets or sets the Profile parameter. Possible values: Domain, Private, Public, All
- Possible values:
Domain,Private,Public,All - LogFilePath string
- Gets or sets the LogFilePath parameter.
- LogFileSizeKB int
- Gets or sets the LogFileSizeKB parameter.
- LogDroppedPackets bool
- Gets or sets the LogDroppedPackets parameter.
- LogSuccessfulConnections bool
- Gets or sets the LogSuccessfulConnections parameter.
- Policy SwitchParameter
- Gets or sets the Policy parameter.
Outputs
System.Boolean