API Reference
Command
Get-CxEventLogPolicy
Gets Event Log channel policy (enable/size/mode/path/SDDL) for specified logs.
Examples
Example 1
Get-CxEventLogPolicy -LogName Application, System, Security
Example 2
Get-CxEventLogPolicy -ComputerName SRV1 -LogName 'Microsoft-Windows-PowerShell/Operational'
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
Get-CxEventLogPolicy [-ComputerName <string>] -LogName <string[]> [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- LogName string[]
- Names of Windows event logs to query (e.g., Application, System, Security).
Outputs
ComputerX.EventLog.EventLogChannelPolicy