Powershell – Eventlog – List Events of last N days with specific source

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Querying EventLog using PowerShell.

Count the number of occurences of Kerberos Entries in System Eventlog for the last 24 hours

(Get-EventLog -LogName System -Source Kerberos -After (Get-Date).AddDays(-1)).Count

output the all Kerberos entries in System Eventlog for the last 24 hours:

Get-EventLog -LogName System -Source Kerberos -After (Get-Date).AddDays(-1)

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.