The ImportRole Windows Management Instrumentation (WMI) class method, in System Center 2012 Configuration Manager, imports a role defined by an XML string to the database.

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

SInt32 ImportRole(
	 String RolesXml,
	 Boolean OverwrittenExisted, 
	 String ErrorStr,
);

Parameters

RolesXml

Data type: StringQualifiers: [in]The id of the role.
OverwrittenExisted

Data type: BooleanQualifiers: [in]true, if an existing role should be overwritten. The default value is true.
ErrorStr

Data type: StringQualifiers: [out]The error information if there is any error while importing the role.

Return Values

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

Requirements

Runtime Requirements

Development Requirements

See Also