Microsoft KB Archive/905143

= An “error occurred on line 498 while executing script” error message is logged in the Application log when you try to use the “Run Hardware Discovery” event rule in Microsoft Operations Manager 2005 =

Article ID: 905143

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Operations Manager (MOM) 2005

-





SYMPTOMS
When you try to use the Run Hardware Discovery event rule to monitor a computer that has a single network adapter and multiple IP addresses, an error message that is similar to the following is logged in the Application log on the Microsoft Operations Manager (MOM) 2005 management server: Event Type: Error

Event Source: Microsoft Operations Manager

Event Category: None

Event ID: 9100

User:

Computer:

Description:

An error occurred on line 498 while executing script 'Microsoft Windows Base OS Hardware Discovery Script'

Source: Microsoft VBScript runtime error

Description: Type mismatch: 'CStr'

For more information, see Help and Support Center at http://support.microsoft.com.



CAUSE
This problem occurs because the Win32_NetworkAdapter::NetworkAddresses property returns a string array to the Cstr command instead of the string value that the Cstr command requires. The Win32_NetworkAdapter::NetworkAddresses property returns a string array instead of a string value when a single network adapter has been assigned multiple IP addresses.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Operations Manager 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

905416 How to obtain the latest Microsoft Operations Manager 2005 service pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This problem was first corrected in Microsoft Operations Manager 2005 Service Pack 1.

Keywords: kbmom2005sp1fix kberrmsg kbtshoot kbprb KB905143

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.