PowerShell Tip: Check the Status of Event Logs

Here is a quick tip that uses PowerShell’s Get-EventLog cmdlet to list a full list of event logs in Windows with details like size, number of entries, and the overflow action.

The full command is: Get-EventLog -list

The output:

kjc - powershell get-eventlog

Neat!

/via Scripting Guy/

Leave a Reply

Your email address will not be published. Required fields are marked *