The GetClientConfigPolicies Windows Management Instrumentation (WMI) class method, in System Center 2012 Configuration Manager, gets all site-wide client configuration policies and their corresponding policy assignments.

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

SInt32 GetClientConfigPolicies(
	String PolicyXmls[],
	String PolicyAssignmentXmls[]
);

Parameters

PolicyXmls

Data type: String ArrayQualifiers: [out]The XML representations of all site-wide client configuration policies.
PolicyAssignmentXmls

Data type: String ArrayQualifiers: [out]The XML representations of all site-wide client configuration policy assignments. This parameter and PolicyXmls are aligned, with the nth element of one corresponding to the nth element of the other.

Return Values

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.

Requirements

Runtime Requirements

Development Requirements

See Also