"An error occurred on line <nn> while executing script <ScriptName>" error message when you run a script in Microsoft Operations Manager 2005 (883329)



The information in this article applies to:

  • Microsoft Operations Manager 2005

SYMPTOMS

When you run a script in Microsoft Operations Manager (MOM) 2005, you may receive an error message that is similar to the following:
An error occurred on line nn while executing script ScriptName
Source: Microsoft VBScript runtime error
Description: ActiveX component can't create object: 'ObjectName'
Note In this error message, ScriptName is the name of the script you are trying to run, and ObjectName is the name of the script helper object that cannot be created.

This problem may occur after you import a Management Pack from MOM 2000 Service Pack 1 (SP1) to MOM 2005, and the imported Management Pack includes a script that includes a script helper object.

CAUSE

This behavior occurs because the script helper object is not supported in MOM 2005. MOM 2005 does not support the following script helper objects:
  • ActiveDirectory
  • EventLog
  • INet
  • MTALogAnalyzer
  • PagerJobQueue
  • SCManager
  • SystemManager
  • TermServer
  • Utility
  • Regobj.Registry

Modification Type:MinorLast Reviewed:6/13/2005
Keywords:kbtshoot kbprb KB883329 kbAudITPRO