| title | GetSequence Method |
|---|---|
| description | The GetSequence Windows Management Instrumentation (WMI) class method gets a task sequence (SMS_TaskSequence Server WMI Class) from a task sequence package (SMS_TaskSequencePackage Server WMI Class.) |
| ms.date | 09/20/2016 |
| ms.subservice | sdk |
| ms.topic | reference |
| ms.collection | tier3 |
The GetSequence Windows Management Instrumentation (WMI) class method, in Configuration Manager, gets a task sequence (SMS_TaskSequence Server WMI Class) from a task sequence package (SMS_TaskSequencePackage Server WMI Class).
The following syntax is simplified from Managed Object Format (MOF) code, and it defines the method.
SInt32 GetSequence(
SMS_TaskSequencePackage TaskSequencePackage,
SMS_TaskSequence TaskSequence
);
TaskSequencePackage
Data type: SMS_TaskSequencePackage
Qualifiers: [in]
The task sequence package that contains the requested task sequence. See SMS_TaskSequencePackage Server WMI Class.
TaskSequence
Data type: SMS_TaskSequence
Qualifiers: [out]
The SMS_TaskSequence Server WMI Class object that represents the task sequence contained in the task sequence package specified in TaskSequencePackage.
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.
Note
The task sequence is returned in the TaskSequence parameter.
You use GetSequence to get a SMS_TaskSequence Server WMI Class WMI object that represents a task sequence from a task sequence package. With this object, you can make changes to the task sequence and then update the task sequence package by using the SetSequence Method in Class SMS_TaskSequencePackage.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
SMS_TaskSequence Server WMI Class SMS_TaskSequencePackage Server WMI Class SetSequence Method in Class SMS_TaskSequencePackage