Share via


SetSequence Method in Class SMS_TaskSequencePackage

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 SetSequence Windows Management Instrumentation (WMI) class method, in Configuration Manager, updates the task sequence package with the specified task sequence.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

SInt32 SetSequence(
      SMS_TaskSequencePackage TaskSequencePackage,
      SMS_TaskSequence TaskSequence,
      String SavedTaskSequencePackagePath
);

Parameters

  • TaskSequence
    Data type: SMS_TaskSequence

    Qualifiers: [in]

    The SMS_TaskSequence Server WMI Class object that represents the task sequence that is added to TaskSequencePackage.

  • SavedTaskSequencePackagePath
    Data type: String

    Qualifiers: [out]

    The relative WMI object path for the updated task sequence package.

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.

Remarks

SetSequence is used to associate a task sequence (SMS_TaskSequence Server WMI Class) with a task sequence package.

This method also updates other properties of the task sequence package, for example, package references and task sequence type, based on the specified task sequence.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Reference

SMS_TaskSequencePackage Server WMI Class

Concepts

SMS_TaskSequence Server WMI Class
GetSequence Method in Class SMS_TaskSequencePackage
How to Create an Operating System Deployment Task Sequence Package