| description | Learn how to create a deployment template available to deploy a software update on the site directly versus using the Configuration Manager console. |
|---|---|
| title | SMS_Template Class |
| ms.date | 09/20/2016 |
| ms.subservice | sdk |
| ms.topic | reference |
| ms.collection | tier3 |
The SMS_Template Windows Management Instrumentation (WMI) class is an SMS Provider server class in Configuration Manager that represents a deployment template available on the site that you can use instead of the Configuration Manager console deployment wizard to deploy a software update.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.
Class SMS_Template : SMS_BaseClass
{
String Data;
String Description;
DateTime LastModifiedDate;
String Name;
String SchemaGUID;
String TemplateUniqueID;
UInt32 Type;
};
The SMS_Template class doesn't define any methods.
Data
Data type: String
Access type: Read/Write
Qualifiers: [lazy, large]
Extended data for the template, in XML format.
Description
Data type: String
Access type: Read/Write
Qualifiers: None
A comment describing the template.
LastModifiedDate
Data type: DateTime
Access type: Read-only
Qualifiers: read, not_null
The last modified date of the template.
Name
Data type: String
Access type: Read/Write
Qualifiers: [not_null]
User-friendly display name for the template.
SchemaGUID
Data type: String
Access type: Read/Write
Qualifiers: [optional]
GUID that references the template schema.
TemplateUniqueID
Data type: String
Access type: Read/Write
Qualifiers: [key, not_null]
GUID to represent the template. The default value is "".
Type
Data type: UInt32
Access type: Read/Write
Qualifiers: [Not_null]
The type of the template. Currently the only possible value is:
| Value | Template type |
|---|---|
| 0 | SUM_DEPLOYMENT |
Class qualifiers for this class include:
-
Secured
For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.
Use of this class is optional. You can use an
SMS_Templateobject instead of the console if necessary. In this case, the properties are populated for you, and you need to change only the ones that reflect information that has changed since the last software update deployment.
Note
SMS_Template objects are not replicated to child sites.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.