KB933556 - Error message when you use the MOM 2005 Operator console to run an XML script that contains a CDATA block: "Parameter is incorrect"

KB933556 has been released

 

SYMPTOMS

When you use the Microsoft Operations Manager (MOM) 2005 Operator console to run an XML script that contains a CDATA block, you receive the following error message:

Operating Console Error—Parameter is incorrect.

When the script runs on an agent-managed computer, you receive the following error message:

Parameter is incorrect.

For example, you receive this error message when the script runs as part of a rule.

Back to the top

CAUSE

This issue occurs when the script contains a CDATA sequence in a CDATA section. When the ]]> sequence appears in a CDATA section, the XML parser interprets the sequence as the end of the section. Therefore, the sequence is not processed.

 

WORKAROUND

To work around this issue, run the script by using the CScript.exe command-based script host. For more information about how to use CScript.exe, visit the following Microsoft Web site:

Using the command-based script host (CScript.exe)
https://msdn2.microsoft.com/en-us/library/ms256076.aspx (https://msdn2.microsoft.com/en-us/library/ms256076.aspx)

 

MORE INFORMATION

For more information about how to use CDATA sections in scripts, visit the following Microsoft Web site:

CDATA Sections [XML Standards]
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cscript_overview.mspx?mfr=true (https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cscript\_overview.mspx?mfr=true)

See https://support.microsoft.com/kb/933556