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
- Firewall profile whose logging settings should be updated. Possible values: Domain, Private, Public, All
- Possible values:
Domain,Private,Public,All - LogFilePath string
- Log file path to apply to the selected firewall profile.
- LogFileSizeKB int
- Maximum firewall log size, in kilobytes.
- LogDroppedPackets bool
- When set, records dropped packets in the firewall log.
- LogSuccessfulConnections bool
- When set, records successful connections in the firewall log.
- Policy SwitchParameter
- Writes logging settings to the policy-backed firewall path instead of the operational path.
Outputs
System.Boolean