Get-Rule -ID (v2)

If you have a rule or monitor that are incorrect configure you can end up with a event like the one below.

Event Type: Error
Event Source: Health Service Modules
Event Category: None
Event ID: 10102
Description:
In PerfDataSource, could not resolve counter incorrectObject, incorrectCount, incorrectInstance. Module will be unloaded.
One or more workflows were affected by this.
Workflow name: MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb
Instance name: DC01
Instance ID: {0367F246-11C3-0AA4-583B-6819AB40434E}
Management group: Contoso

With only the information in the local event it can be difficult for you to troubleshoot it. To get more information about, in this case about a rule, you can first run a SQL quert in your OperationsManager database

SELECT * FROM Rules WHERE RuleName = ‘MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb’

You will then get a lot of information about the rule, copy the string in the RuleID field, and then start Command Shell. In Command Shell run the Get-Rule command, for example Get-Rule -Id FA5958CE-1EC8-A723-541A-5A1B2D48B67D

This command will return all information about this rule, for example DisplayName. You can then easy find the rule in the Operations Console and modify it.

About

Microsoft