共用方式為


BlockCertificate Method in Class SMS_CertificateInfo

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 BlockCertificate Windows Management Instrumentation (WMI) class method, in Configuration Manager 2007, blocks or unblocks the specified certificate.

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

SInt32 BlockCertificate(
      String SMSID,
      Boolean Blocked
);

Parameters

  • Blocked
    Data type: Boolean

    Qualifiers: [in]

    true, by default, to block the certificate. A blocked certificate is rejected by the site database. See the Remarks section later in this topic.

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 value furnished for the Blocked parameter directly affects the setting of the IsBlocked property of SMS_CertificateInfo Server WMI Class.

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

Concepts

SMS_CertificateInfo Server WMI Class
Configuration Manager Operating System Deployment
About Operating System Deployment Task Sequences