ScriptBody (ScriptDiscoveryType) Element

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The ScriptBody (ScriptDiscoveryType) element, in Configuration Manager, is the script definition that will be executed to return instances. Instances are returned, separated by a carriage return (CR) line feed (LF) sequence. Each value that is returned on a single line is considered an instance. Instances are returned by echoing them to the standard output, and these will be captured.

The script itself can contain markup and therefore it is preferable to enclose the script within a CDATA element.

The script language must match that specified in the ScriptType attribute.

The ScriptBody element is defined by the ScriptDiscoveryType complex type.

<xs:element name="ScriptBody"
    type="NonEmptyStringType"
 />

See Also

Concepts

ScriptDiscoveryType
ScriptDiscoverySource
Authoring Desired Configuration Management Configuration Baselines and Configuration Items