Редагувати

Поділитися через


SetSequence Method in Class SMS_TaskSequencePackage

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.

Syntax

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.

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

SMS_TaskSequence Server WMI Class
SMS_TaskSequencePackage Server WMI Class
GetSequence Method in Class SMS_TaskSequencePackage