BlockCertificate Method in Class SMS_AMTCertificate
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, sets the block state of a certificate.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
SInt32 BlockCertificate(
UInt32 CertID,
UInt32 op
);
Parameters
CertID
Data type: UInt32Qualifiers: [in]
Certificate to set the block state on. This certificate refers to an instance of the SMS_AMTCertificate Server WMI Class.
op
Data type: UInt32Qualifiers: [in, optional, enumeration("Block(4), Unblock(5), Delete(6) ")]
The block state to set on the certificate. If it is omitted, the default value is 4.The following table provides the list of supported actions:
Value Description 4
Block this certificate.
5
Unblock this certificate.
6
Delete this certificate.
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
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.