Have you every created a rule, and then a month later realize you need to change something on it? Sure.
Only you can’t seem to find it because your SCOM UI locks up and crashes when you try to have full scope to find it? Ohh yeah.
Then this one line is for you.
((get-rule | ? {$_.DisplayName -like "*RuleName*"}).getmanagementpack()).displayname
That’s all it takes. Just change where is says *Rule Name* to match the name, or part of the name your rule has, and hit enter. It will output the MP it’s in.
Have fun.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.