The GetClientConfigPolicies Windows Management Instrumentation (WMI) class method, in 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.

Remarks

The site-wide client configuration policies can contain sensitive information, such as the network access account. Sensitive information is obfuscated in the XML, but the strings should still be handled according to best security practices.

To invoke this method, you must have read permission for the Configuration Manager site object.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.