I am trying to find errors in the system log only logged after the 1st of July 2011:
Get-EventLog system -entrytype error | Where-Object {$_.Time -ge [datetime]"01/07/2011 9:00 AM"}
However this doesn’t return anything. Is the format of my Where-Object correct?
Try the
-Afterparameter: