Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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}
}
Comments
Anonymous
January 01, 2003
PingBack from http://blogs.technet.com/jonathanalmquist/archive/2008/11/17/operations-manager-2007-command-shell.aspxAnonymous
January 01, 2003
LOL - just approved some old comments and saw this was over 3 years ago. Sorry for the delay :)Anonymous
January 01, 2003
The comment has been removedAnonymous
April 21, 2009
This doesn't seem to work with event id's that are identified with regular expressions, hopefully we can find a fix.Anonymous
December 04, 2012
Works great, but... :) would be great to add the event source to minimize the number of results... thanks Jonathan