SetSequence Method in Class SMS_TaskSequencePackage
Updated: October 28, 2009
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
- TaskSequencePackage
- Data type: SMS_TaskSequencePackage Qualifiers: [in] The package that the task sequence TaskSequence is added to. See SMS_TaskSequencePackage Server WMI Class.
- 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.
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.
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.
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.