guyrleech

Get all events in a given time/date range

Dec 4th, 2019
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-WinEvent -ListLog * |Where-Object { $_.RecordCount }|ForEach-Object{ Get-WinEvent -EA SilentlyContinue -FilterHashtable @{logname=$_.logname;starttime='07:45:15';endtime='07:47:15'}}|Select-Object * -ExcludeProperty ?Id,Version,Qualifiers,Level,Task,OpCode,Keywords,Bookmark,*Ids,Properties|sort TimeCreated|Out-GridView
Add Comment
Please, Sign In to add comment