Edit

Share via


GenerateProvisioningXML Method in Class SMS_BulkEnrollmentProfiles

The ImportForProfile Windows Management Instrumentation (WMI) class method, in Configuration Manager, generates provisioning data in XML format.

Syntax

sint32 GenerateProvisioningXML(  
     String BulkEnrollmentProfileID,  
     Boolean IsEncrypted,  
     String EncrytionPassword,  
     String ProvisioningDataXML  
);  

Parameters

BulkEnrollmentProfileID
Data type: String

Qualifiers: [in]

The ID of the bulk enrollment profile.

IsEncrypted
Data type: Boolean

Qualifiers: [in]

true if the enrollment package is password-protected. The default value is false.

EncrytionPassword
Data type: String

Qualifiers: [in, optional]

The password used to encrypt the enrollment package.

ProvisioningDataXML
Data type: String

Qualifiers: [out]

The XML output that contains the provisioning data.

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

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

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_BulkEnrollmentProfiles Server WMI Class