IPxeAuthClass::CreateIdentity Method

In Configuration Manager, the CreateIdentity method creates a PXE certificate identity that is used in the client configuration file. This method is used to create a new self-signed certificate.

Syntax

HRESULT CreateIdentity(  
      BSTR FriendlyName,  
      BSTR SubjectName,  
      BSTR SMSID,  
      VARIANT* StartTime,  
      VARIANT* EndTime,  
      VARIANT* Identity  
);  

Parameters

FriendlyName
Data type: BSTR

Qualifiers: [in]

Friendly name of the certificate identity.

SubjectName
Data type: BSTR

Qualifiers: [in]

Name of the certificate subject.

SMSID
Data type: BSTR

Qualifiers: [in]

The GUID used to identify the certificate. This is the value of the SMSID property in SMS_CertificateInfo Server WMI Class.

StartTime
Data type: VARIANT

Qualifiers: [in]

Time when the certificate becomes valid.

EndTime
Data type: VARIANT

Qualifiers: [in]

Time when the validity of the certificate ends.

Identity
Data type: VARIANT

Qualifiers: [out, retval]

PXE certificate identity. Can be used with SubmitRegistrationRecord Method in Class SMS_Site.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following value.

S_OK
The method succeeded.

Remarks

See Also

IPxeAuthClass Interface
About Operating System Deployment Site Role Configuration