Command Shell Examples
Useful SQL Queries
Find collection rule for specific Event Id - Jonathan Almquist on Operations Manager - Site Home - TechNet Blogs

Find collection rule for specific Event Id

Find collection rule for specific Event Id

Rate This
  • Comments 5

Beware of word wrap.

foreach ($rule in get-rule | where {$_.category -eq "EventCollection"} | foreach-object {$_.DataSourceCollection})
    {
    if ($rule.get_configuration().ToString() -match "event number")
        {$rule.get_ParentElement().DisplayName}
    }

main menu

What do you think about this post?
Leave a Comment
  • Post
What others have said about this post...
Comments
Page 1 of 1 (5 items)