Microsoft Windows ‚Get-WinEvent‘ – will get all the events from all the event logs

Using PowerShell – to get all events from the last 24 hours

 

 

Get-WinEvent -FilterHashtable @{LogName=’System‘,’Application‘; StartTime=(Get-Date).AddHours(-24)} | Export-Csv -Path „C:\Logs\UrgentLogs.csv“ -NoTypeInformation

Leave a Reply

You must be logged in to post a comment.