Powershell Get-Eventlog按时间过滤
问题描述:
我正在运行Windows 2003,我想在特定时间... 12:06 pm之后获取事件列表。那我怎么才能得到那些事件呢?我已经试过这样:Powershell Get-Eventlog按时间过滤
powershell get-eventlog application -after "3/15/2013 12:06:00 pm"
,但我得到一个错误:
Cannot bind parameter 'InstanceId....
答
这个工程:
powershell -command "get-eventlog application -after ([datetime]'3/15/2013 12:06:00 pm')"
完美,谢谢! – 2013-03-15 23:25:19
@KenJ很高兴帮助! – 2013-03-15 23:37:52