【问题标题】:win32_NTlogEvent query InsertionStrings propertywin32_NTlogEvent 查询 InsertionStrings 属性
【发布时间】:2014-03-26 14:01:36
【问题描述】:

我想完成类似的事情:

SELECT * FROM win32_NTlogEvent WHERE logfile = 'application' AND insertionStrings LIKE '%searchString'  

我知道 insertString 是一个字符串数组。所以我不确定如何使用 WQL 访问它的值。

【问题讨论】:

    标签: powershell vbscript event-viewer


    【解决方案1】:

    你可以使用(Powershell):

    Get-EventLog -Logname "Application" | ?{$_.Message -like "*$STRING*"}
    

    这将获取应用程序日志中的所有条目,以及与 $string 值匹配的消息。这就是你所追求的吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-17
      • 2021-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多