Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

filtering event logs with specific date range

$
0
0

Hi All,

I'm new to powershell and i need help with retrieving event id 560 with specific date range provided as input. currently im using the following command. but i want it to be able to specify a date range. For example, i want to search between Date A and Date B for events logged under event id 560. Hope someone could help me with this. Thank you.

Get-EventLog -LogName system | Where-Object { $_.eventID -eq 560 } > c:\scripts\objects.csv


Jaya_7


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>