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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">