Question:
I’m running Windows 2003 and I want to get a list of events at a specific time…after 12:06 pm. How can I get only those events at that time? I’ve tried this:
1 2 |
powershell get-eventlog application -after "3/15/2013 12:06:00 pm" |
but I’m getting an error:
1 2 |
Cannot bind parameter 'InstanceId.... |
Answer:
this works:
1 2 |
powershell -command "get-eventlog application -after ([datetime]'3/15/2013 12:06:00 pm')" |