TestimoX

API Reference

Command

Get-CxEventLogPolicy

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.EventLog.EventLogChannelPolicy

Gets Event Log channel policy (enable/size/mode/path/SDDL) for specified logs.

Examples

Authored help example

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 optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
LogName string[] requiredposition: 1pipeline: false
Names of Windows event logs to query (e.g., Application, System, Security).

Outputs

ComputerX.EventLog.EventLogChannelPolicy