【问题标题】:Powershell Get-Eventlog Filter by TimePowershell Get-Eventlog 按时间过滤
【发布时间】:2014-05-10 05:52:19
【问题描述】:

我正在运行 Windows 2003,我想获取特定时间的事件列表...在下午 12:06 之后。那时我怎样才能只获得那些事件?我试过这个:

powershell get-eventlog application -after "3/15/2013 12:06:00 pm"

但我收到一个错误:

Cannot bind parameter 'InstanceId.... 

【问题讨论】:

    标签: powershell


    【解决方案1】:

    这行得通:

     powershell -command  "get-eventlog application -after ([datetime]'3/15/2013 12:06:00 pm')"
    

    【讨论】:

      猜你喜欢
      • 2016-08-01
      • 2020-11-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-25
      • 2014-04-06
      • 1970-01-01
      • 2017-08-06
      相关资源
      最近更新 更多