The LoadFromXml Windows Management Instrumentation (WMI) class method, in Configuration Manager, loads a task sequence into WMI objects from task sequence XML.

Caution
As of Configuration Manager SP1, LoadFromXml has been replaced by the ImportSequence method on the SMS_TaskSequencePackage server WMI class.

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

SMS_TaskSequence LoadFromXml(
	String Xml
);

Parameters

Xml

Data type: StringQualifiers: [in]The task sequence XML to use to build the WMI objects.

Return Values

An SMS_TaskSequence Server WMI Class object.

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

Remarks

Your application uses this method to import XML from an outside provider, for example, the user interface. It builds and returns a WMI object model based on the represented task sequence.

Caution
You should not make changes to task sequences by using the XML. Rather, you should use the task sequence object model to create and edit task sequences. For more information, see Operating System Deployment Task Sequence Object Model.
Note
Use the SetSequence Method in Class SMS_TaskSequencePackage method to add a task sequence to a task sequence package.

Requirements

Runtime Requirements

Development Requirements

See Also