GetClientConfigPolicies Method in Class SMS_TaskSequencePackage

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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 Array

    Qualifiers: [out]

    The XML representations of all site-wide client configuration policies.

  • PolicyAssignmentXmls
    Data type: String Array

    Qualifiers: [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

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Reference

SMS_TaskSequencePackage Server WMI Class

Concepts

GetTsPolicies Method in Class SMS_TaskSequencePackage