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 );
- Data type: StringQualifiers: [in]The GUID used to identify the certificate. This identifier is defined by the SMSID property of SMS_CertificateInfo Server WMI Class.
- Data type: BooleanQualifiers: [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.
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.
The value furnished for the Blocked parameter directly affects the setting of the IsBlocked property of SMS_CertificateInfo Server WMI Class.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
Send comments about this topic to Microsoft.