DNS: Admin: DNS Management Pack Discovery Fails with Event ID 1155 in System Center Operations Manager


Symptoms


When using Microsoft System Center Operations Manager, with the DNS Management Pack, DNS 2008 Component Discovery may fail.  Below events are logged in the Operations Manager Event Log on the DNS Server.

Event 1

Log Name: Operations Manager
Source: Health Service Script
Date: <Event Time>
Event ID: 1155
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <Computer Name>
Description:
DNS2008ComponentDiscovery : Unable to open WMI \root\default:StdRegProv.

Event 2

Log Name: Operations Manager
Source: Health Service Modules
Date: <Event Time>
Event ID: 21405
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: <Computer Name>
Description:
The process started at <Time> failed to create System.Discovery.Data, no errors detected in the output. The process exited with 0

Command executed: "C:\Windows\system32\cscript.exe" /nologo "DNS2008ComponentDiscovery.vbs" <Script Parameters>

Working Directory: <Monitoring Host Temporary Files Location>

One or more workflows were affected by this.

Workflow name: Microsoft.Windows.DNSServer.2008.Discovery.Components
Instance name: <Computer Name>
Instance ID: {<GUID>}
Management group: <Management Group Name>

If you connect to WMI \root\default:StdRegProv directly using Windows Management Instrumentation Tester (Wbemtest.exe) with required privileges you should be able to connect.

Cause


The DNS2008ComponentDiscovery.vbs script could not connect to the WMI Class MicrosoftDNS_Zone due to an unavailable Property Value in the class.

Resolution


This can be resolved by recreating the WMI values for DNS by recompiling the DNS mof files:

1.  On the DNS Server, Open a Command Prompt as Administrator and execute the following commands:

mofcomp C:\Windows\System32\wbem\dnsetw.mof

and

mofcomp C:\Windows\System32\wbem\dnsprov.mof

Above commands will recreate the DNS information in the WMI repository. Once this is done the errors should no longer appear.

More Information


For More Information on DNS Management Pack and DNS Component Discovery, please refer to DNS Management Pack Documentation.