In Configuration Manager, 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).
The following syntax is simplified from Managed Object Format (MOF) code, and it defines the method.
SInt32 GetSequence( SMS_TaskSequencePackage TaskSequencePackage, SMS_TaskSequence TaskSequence );
- Data type: SMS_TaskSequencePackageQualifiers: [in]The task sequence package that contains the requested task sequence. See SMS_TaskSequencePackage Server WMI Class.
- Data type: SMS_TaskSequenceQualifiers: [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.
|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 How to Read a Task Sequence from a Task Sequence Package.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
Send comments about this topic to Microsoft.