Get-EventLog - easily filter by 'today'? Get-EventLog - easily filter by 'today'? powershell powershell

Get-EventLog - easily filter by 'today'?


The DateTime class has a static Property Today which will return exactly what you need:

get-eventlog system  -source "disk" -after ([datetime]::Today)