Operations Manager Command Shell Main Menu
Welcome to TechNet Blogs Sign in | Join | Help
Find collection rule for specific Event Id

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

Posted: Thursday, March 19, 2009 7:40 PM by jtalmquist
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker