Share via


IScheduler::SetCertificateCredentialsPfx method

Uploads a certificate encoded with a password to the scheduler to use for running jobs as this user.

Syntax

HRESULT SetCertificateCredentialsPfx(
  [in] BSTR          *userName,
  [in] BSTR          *pfxPassword,
  [in] unsigned char *certBytes
);

Parameters

  • userName [in]
    The name of the RunAs user, in the form domain\user. The user name is limited to 80 characters.

  • pfxPassword [in]
    The password for the RunAs user. The password is limited to 127 characters.

  • certBytes [in]
    A byte array that contains the certificate.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ISchedulerJob::ErrorMessage property.

Requirements

Product

This method was introduced in Windows HPC Server 2008 R2 Service Pack 2 (SP2) and is not supported in previous versions.

Type library

Microsoft.Hpc.Scheduler.tlb