ScriptDiscoveryType Complex Type

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 ScriptDiscoveryType complex type, in Configuration Manager, is associated with discovering settings by invoking a script.

<xs:complexType name="ScriptDiscoveryType">
    <xs:complexContent>
        <xs:extension
            base="DiscoverySourceType"
        >
            <xs:sequence>
                <xs:element name="ScriptBody"
                    type="NonEmptyStringType"
                 />
            </xs:sequence>
            <xs:attribute name="ScriptType"
                type="ScriptType"
                use="required"
                          />
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

Child Elements

Element Type Description

ScriptBody

NonEmptyStringType

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 above.

Attributes

Name Type Description

ScriptType

ScriptType

The language of the script that has been defined inline.

See Also

Concepts

Authoring Desired Configuration Management Configuration Baselines and Configuration Items